services_legacy_privates.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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 Symfony_DI_PhpDumper_Test_Legacy_Privates extends Container
  16. {
  17. private $parameters;
  18. private $targetDirs = array();
  19. public function __construct()
  20. {
  21. $dir = __DIR__;
  22. for ($i = 1; $i <= 5; ++$i) {
  23. $this->targetDirs[$i] = $dir = \dirname($dir);
  24. }
  25. $this->services = array();
  26. $this->methodMap = array(
  27. 'bar' => 'getBarService',
  28. 'private' => 'getPrivateService',
  29. 'private_alias' => 'getPrivateAliasService',
  30. 'private_alias_decorator' => 'getPrivateAliasDecoratorService',
  31. 'private_child' => 'getPrivateChildService',
  32. 'private_decorator' => 'getPrivateDecoratorService',
  33. 'private_not_inlined' => 'getPrivateNotInlinedService',
  34. 'private_not_removed' => 'getPrivateNotRemovedService',
  35. 'private_parent' => 'getPrivateParentService',
  36. 'public_child' => 'getPublicChildService',
  37. );
  38. $this->privates = array(
  39. 'decorated_private' => true,
  40. 'decorated_private_alias' => true,
  41. 'private' => true,
  42. 'private_alias' => true,
  43. 'private_child' => true,
  44. 'private_not_inlined' => true,
  45. 'private_not_removed' => true,
  46. 'private_parent' => true,
  47. );
  48. $this->aliases = array(
  49. 'alias_to_private' => 'private',
  50. 'decorated_private' => 'private_decorator',
  51. 'decorated_private_alias' => 'private_alias_decorator',
  52. );
  53. }
  54. public function getRemovedIds()
  55. {
  56. return array(
  57. 'Psr\\Container\\ContainerInterface' => true,
  58. 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
  59. 'decorated_private' => true,
  60. 'decorated_private_alias' => true,
  61. 'foo' => true,
  62. 'private' => true,
  63. 'private_alias' => true,
  64. 'private_alias_decorator.inner' => true,
  65. 'private_child' => true,
  66. 'private_decorator.inner' => true,
  67. 'private_not_inlined' => true,
  68. 'private_not_removed' => true,
  69. 'private_parent' => true,
  70. );
  71. }
  72. public function compile()
  73. {
  74. throw new LogicException('You cannot compile a dumped container that was already compiled.');
  75. }
  76. public function isCompiled()
  77. {
  78. return true;
  79. }
  80. public function isFrozen()
  81. {
  82. @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);
  83. return true;
  84. }
  85. /**
  86. * Gets the public 'bar' shared service.
  87. *
  88. * @return \stdClass
  89. */
  90. protected function getBarService()
  91. {
  92. return $this->services['bar'] = new \stdClass(${($_ = isset($this->services['private_not_inlined']) ? $this->services['private_not_inlined'] : $this->services['private_not_inlined'] = new \stdClass()) && false ?: '_'});
  93. }
  94. /**
  95. * Gets the public 'private_alias_decorator' shared service.
  96. *
  97. * @return \stdClass
  98. */
  99. protected function getPrivateAliasDecoratorService()
  100. {
  101. return $this->services['private_alias_decorator'] = new \stdClass();
  102. }
  103. /**
  104. * Gets the public 'private_decorator' shared service.
  105. *
  106. * @return \stdClass
  107. */
  108. protected function getPrivateDecoratorService()
  109. {
  110. return $this->services['private_decorator'] = new \stdClass();
  111. }
  112. /**
  113. * Gets the public 'public_child' shared service.
  114. *
  115. * @return \stdClass
  116. */
  117. protected function getPublicChildService()
  118. {
  119. return $this->services['public_child'] = new \stdClass();
  120. }
  121. /**
  122. * Gets the private 'private' shared service.
  123. *
  124. * @return \stdClass
  125. */
  126. protected function getPrivateService()
  127. {
  128. return $this->services['private'] = new \stdClass();
  129. }
  130. /**
  131. * Gets the private 'private_alias' shared service.
  132. *
  133. * @return \stdClass
  134. */
  135. protected function getPrivateAliasService()
  136. {
  137. return $this->services['private_alias'] = new \stdClass();
  138. }
  139. /**
  140. * Gets the private 'private_child' shared service.
  141. *
  142. * @return \stdClass
  143. */
  144. protected function getPrivateChildService()
  145. {
  146. return $this->services['private_child'] = new \stdClass();
  147. }
  148. /**
  149. * Gets the private 'private_not_inlined' shared service.
  150. *
  151. * @return \stdClass
  152. */
  153. protected function getPrivateNotInlinedService()
  154. {
  155. return $this->services['private_not_inlined'] = new \stdClass();
  156. }
  157. /**
  158. * Gets the private 'private_not_removed' shared service.
  159. *
  160. * @return \stdClass
  161. */
  162. protected function getPrivateNotRemovedService()
  163. {
  164. return $this->services['private_not_removed'] = new \stdClass();
  165. }
  166. /**
  167. * Gets the private 'private_parent' shared service.
  168. *
  169. * @return \stdClass
  170. */
  171. protected function getPrivateParentService()
  172. {
  173. return $this->services['private_parent'] = new \stdClass();
  174. }
  175. }