class ProjectServiceContainer in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ProjectServiceContainer
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services8.php \ProjectServiceContainer
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9_compiled.php \ProjectServiceContainer
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services1.php \ProjectServiceContainer
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services20.php \ProjectServiceContainer
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9.php \ProjectServiceContainer
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services12.php \ProjectServiceContainer
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services19.php \ProjectServiceContainer
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services10.php \ProjectServiceContainer
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ProjectServiceContainer
Hierarchy
- class \Symfony\Component\DependencyInjection\Tests\ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Container
Expanded class hierarchy of ProjectServiceContainer
1 string reference to 'ProjectServiceContainer'
- PhpDumper::dump in vendor/
symfony/ dependency-injection/ Dumper/ PhpDumper.php - Dumps the service container as a PHP class.
File
- vendor/
symfony/ dependency-injection/ Tests/ ContainerTest.php, line 629
Namespace
Symfony\Component\DependencyInjection\TestsView source
class ProjectServiceContainer extends Container {
public $__bar, $__foo_bar, $__foo_baz;
public $synchronized;
public function __construct() {
parent::__construct();
$this->__bar = new \stdClass();
$this->__foo_bar = new \stdClass();
$this->__foo_baz = new \stdClass();
$this->synchronized = false;
$this->aliases = array(
'alias' => 'bar',
);
}
protected function getScopedService() {
if (!$this
->isScopeActive('foo')) {
throw new \RuntimeException('Invalid call');
}
return $this->services['scoped'] = $this->scopedServices['foo']['scoped'] = new \stdClass();
}
protected function getScopedFooService() {
if (!$this
->isScopeActive('foo')) {
throw new \RuntimeException('invalid call');
}
return $this->services['scoped_foo'] = $this->scopedServices['foo']['scoped_foo'] = new \stdClass();
}
protected function getScopedSynchronizedFooService() {
if (!$this
->isScopeActive('foo')) {
throw new \RuntimeException('invalid call');
}
return $this->services['scoped_bar'] = $this->scopedServices['foo']['scoped_bar'] = new \stdClass();
}
protected function synchronizeScopedSynchronizedFooService() {
$this->synchronized = true;
}
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!');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ProjectServiceContainer:: |
public | property | ||
ProjectServiceContainer:: |
public | property | ||
ProjectServiceContainer:: |
protected | function | ||
ProjectServiceContainer:: |
protected | function | ||
ProjectServiceContainer:: |
protected | function | ||
ProjectServiceContainer:: |
protected | function | ||
ProjectServiceContainer:: |
protected | function | ||
ProjectServiceContainer:: |
protected | function | ||
ProjectServiceContainer:: |
protected | function | ||
ProjectServiceContainer:: |
protected | function | ||
ProjectServiceContainer:: |
protected | function | ||
ProjectServiceContainer:: |
protected | function | ||
ProjectServiceContainer:: |
protected | function | ||
ProjectServiceContainer:: |
public | function | Constructor. |