services13.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. use Symfony\Component\DependencyInjection\ContainerInterface;
  3. use Symfony\Component\DependencyInjection\Container;
  4. use Symfony\Component\DependencyInjection\Exception\InactiveScopeException;
  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. class ProjectServiceContainer extends Container
  14. {
  15. private $parameters;
  16. private $targetDirs = array();
  17. public function __construct()
  18. {
  19. $this->services =
  20. $this->scopedServices =
  21. $this->scopeStacks = array();
  22. $this->scopes = array();
  23. $this->scopeChildren = array();
  24. $this->methodMap = array(
  25. 'bar' => 'getBarService',
  26. );
  27. $this->aliases = array();
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function compile()
  33. {
  34. throw new LogicException('You cannot compile a dumped frozen container.');
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function isFrozen()
  40. {
  41. return true;
  42. }
  43. /**
  44. * Gets the public 'bar' shared service.
  45. *
  46. * @return \stdClass
  47. */
  48. protected function getBarService()
  49. {
  50. $a = new \stdClass();
  51. $a->add($this);
  52. return $this->services['bar'] = new \stdClass($a);
  53. }
  54. }