services_private_frozen.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
  3. use Symfony\Component\DependencyInjection\ContainerInterface;
  4. use Symfony\Component\DependencyInjection\Container;
  5. use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
  6. use Symfony\Component\DependencyInjection\Exception\LogicException;
  7. use Symfony\Component\DependencyInjection\Exception\RuntimeException;
  8. use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
  9. /**
  10. * This class has been auto-generated
  11. * by the Symfony Dependency Injection Component.
  12. *
  13. * @final since Symfony 3.3
  14. */
  15. class ProjectServiceContainer extends Container
  16. {
  17. private $parameters;
  18. private $targetDirs = array();
  19. public function __construct()
  20. {
  21. $this->services = array();
  22. $this->methodMap = array(
  23. 'bar_service' => 'getBarServiceService',
  24. 'baz_service' => 'getBazServiceService',
  25. 'foo_service' => 'getFooServiceService',
  26. );
  27. $this->privates = array(
  28. 'baz_service' => true,
  29. );
  30. $this->aliases = array();
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function compile()
  36. {
  37. throw new LogicException('You cannot compile a dumped container that was already compiled.');
  38. }
  39. /**
  40. * {@inheritdoc}
  41. */
  42. public function isCompiled()
  43. {
  44. return true;
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function isFrozen()
  50. {
  51. @trigger_error(sprintf('The %s() method is deprecated since Symfony 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
  52. return true;
  53. }
  54. /**
  55. * Gets the public 'bar_service' shared service.
  56. *
  57. * @return \stdClass
  58. */
  59. protected function getBarServiceService()
  60. {
  61. return $this->services['bar_service'] = new \stdClass(${($_ = isset($this->services['baz_service']) ? $this->services['baz_service'] : $this->getBazServiceService()) && false ?: '_'});
  62. }
  63. /**
  64. * Gets the public 'foo_service' shared service.
  65. *
  66. * @return \stdClass
  67. */
  68. protected function getFooServiceService()
  69. {
  70. return $this->services['foo_service'] = new \stdClass(${($_ = isset($this->services['baz_service']) ? $this->services['baz_service'] : $this->getBazServiceService()) && false ?: '_'});
  71. }
  72. /**
  73. * Gets the private 'baz_service' shared service.
  74. *
  75. * @return \stdClass
  76. */
  77. protected function getBazServiceService()
  78. {
  79. return $this->services['baz_service'] = new \stdClass();
  80. }
  81. }