services24.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. 'foo' => 'getFooService',
  24. );
  25. $this->aliases = array();
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function compile()
  31. {
  32. throw new LogicException('You cannot compile a dumped container that was already compiled.');
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function isCompiled()
  38. {
  39. return true;
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function isFrozen()
  45. {
  46. @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);
  47. return true;
  48. }
  49. /**
  50. * Gets the public 'foo' shared autowired service.
  51. *
  52. * @return \Foo
  53. */
  54. protected function getFooService()
  55. {
  56. return $this->services['foo'] = new \Foo();
  57. }
  58. }