services11.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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\Reference;
  6. use Symfony\Component\DependencyInjection\Parameter;
  7. use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
  8. /**
  9. * ProjectServiceContainer
  10. *
  11. * This class has been auto-generated
  12. * by the Symfony Dependency Injection Component.
  13. */
  14. class ProjectServiceContainer extends Container
  15. {
  16. /**
  17. * Constructor.
  18. */
  19. public function __construct()
  20. {
  21. $this->services =
  22. $this->scopedServices =
  23. $this->scopeStacks = array();
  24. $this->set('service_container', $this);
  25. $this->scopes = array();
  26. $this->scopeChildren = array();
  27. }
  28. /**
  29. * Gets the 'foo' service.
  30. *
  31. * This service is shared.
  32. * This method always returns the same instance of the service.
  33. *
  34. * @return stdClass A stdClass instance.
  35. */
  36. protected function getFooService()
  37. {
  38. return $this->services['foo'] = new \stdClass();
  39. }
  40. }