services20.php 1.8 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\ParameterBag;
  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. parent::__construct();
  20. $this->methodMap = array(
  21. 'depends_on_request' => 'getDependsOnRequestService',
  22. 'request' => 'getRequestService',
  23. );
  24. }
  25. /**
  26. * Gets the public 'depends_on_request' shared service.
  27. *
  28. * @return \stdClass
  29. */
  30. protected function getDependsOnRequestService()
  31. {
  32. $this->services['depends_on_request'] = $instance = new \stdClass();
  33. $instance->setRequest($this->get('request', ContainerInterface::NULL_ON_INVALID_REFERENCE));
  34. return $instance;
  35. }
  36. /**
  37. * Gets the public 'request' shared service.
  38. *
  39. * @return \Request
  40. */
  41. protected function getRequestService()
  42. {
  43. return $this->services['request'] = new \Request();
  44. }
  45. /**
  46. * Updates the 'request' service.
  47. */
  48. protected function synchronizeRequestService()
  49. {
  50. if ($this->initialized('depends_on_request')) {
  51. $this->get('depends_on_request')->setRequest($this->get('request', ContainerInterface::NULL_ON_INVALID_REFERENCE));
  52. }
  53. }
  54. }