methodMap = array( 'depends_on_request' => 'getDependsOnRequestService', 'request' => 'getRequestService', ); } /** * Gets the public 'depends_on_request' shared service. * * @return \stdClass */ protected function getDependsOnRequestService() { $this->services['depends_on_request'] = $instance = new \stdClass(); $instance->setRequest($this->get('request', ContainerInterface::NULL_ON_INVALID_REFERENCE)); return $instance; } /** * Gets the public 'request' shared service. * * @return \Request */ protected function getRequestService() { return $this->services['request'] = new \Request(); } /** * Updates the 'request' service. */ protected function synchronizeRequestService() { if ($this->initialized('depends_on_request')) { $this->get('depends_on_request')->setRequest($this->get('request', ContainerInterface::NULL_ON_INVALID_REFERENCE)); } } }