Expanded class hierarchy of ProjectServiceContainer
class ProjectServiceContainer extends Container {
public $__bar, $__foo_bar, $__foo_baz;
public function __construct() {
parent::__construct();
$this->__bar = new \stdClass();
$this->__foo_bar = new \stdClass();
$this->__foo_baz = new \stdClass();
}
protected function getScopedService() {
if (!isset($this->scopedServices['foo'])) {
throw new \RuntimeException('Invalid call');
}
return $this->services['scoped'] = $this->scopedServices['foo']['scoped'] = new \stdClass();
}
protected function getScopedFooService() {
if (!isset($this->scopedServices['foo'])) {
throw new \RuntimeException('invalid call');
}
return $this->services['scoped_foo'] = $this->scopedServices['foo']['scoped_foo'] = new \stdClass();
}
protected function getInactiveService() {
throw new InactiveScopeException('request', 'request');
}
protected function getBarService() {
return $this->__bar;
}
protected function getFooBarService() {
return $this->__foo_bar;
}
protected function getFoo_BazService() {
return $this->__foo_baz;
}
protected function getCircularService() {
return $this
->get('circular');
}
protected function getThrowExceptionService() {
throw new \Exception('Something went terribly wrong!');
}
protected function getThrowsExceptionOnServiceConfigurationService() {
$this->services['throws_exception_on_service_configuration'] = $instance = new \stdClass();
throw new \Exception('Something was terribly wrong while trying to configure the service!');
}
}