2017-02-21 22:24:03 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerInterface;
|
|
|
|
use Symfony\Component\DependencyInjection\Container;
|
|
|
|
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
|
|
|
|
use Symfony\Component\DependencyInjection\Exception\LogicException;
|
|
|
|
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
|
|
|
|
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ProjectServiceContainer.
|
|
|
|
*
|
|
|
|
* This class has been auto-generated
|
|
|
|
* by the Symfony Dependency Injection Component.
|
|
|
|
*
|
|
|
|
* @final since Symfony 3.3
|
|
|
|
*/
|
|
|
|
class ProjectServiceContainer extends Container
|
|
|
|
{
|
|
|
|
private $parameters;
|
|
|
|
private $targetDirs = array();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructor.
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->services = array();
|
|
|
|
$this->normalizedIds = array(
|
2017-04-06 09:48:39 +01:00
|
|
|
'autowired.symfony\\component\\dependencyinjection\\tests\\fixtures\\customdefinition' => 'autowired.Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition',
|
|
|
|
'symfony\\component\\dependencyinjection\\tests\\fixtures\\testservicesubscriber' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber',
|
2017-02-21 22:24:03 +00:00
|
|
|
);
|
|
|
|
$this->methodMap = array(
|
2017-04-06 09:48:39 +01:00
|
|
|
'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber' => 'getSymfony_Component_DependencyInjection_Tests_Fixtures_TestServiceSubscriberService',
|
|
|
|
'autowired.Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition' => 'getAutowired_Symfony_Component_DependencyInjection_Tests_Fixtures_CustomDefinitionService',
|
2017-02-21 22:24:03 +00:00
|
|
|
'foo_service' => 'getFooServiceService',
|
|
|
|
);
|
|
|
|
$this->privates = array(
|
2017-04-06 09:48:39 +01:00
|
|
|
'autowired.Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition' => true,
|
2017-02-21 22:24:03 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
$this->aliases = array();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function compile()
|
|
|
|
{
|
|
|
|
throw new LogicException('You cannot compile a dumped container that was already compiled.');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function isCompiled()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-06 09:48:39 +01:00
|
|
|
* Gets the 'Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber' service.
|
2017-02-21 22:24:03 +00:00
|
|
|
*
|
|
|
|
* This service is shared.
|
|
|
|
* This method always returns the same instance of the service.
|
|
|
|
*
|
2017-04-06 09:48:39 +01:00
|
|
|
* @return \Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber A Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber instance
|
2017-02-21 22:24:03 +00:00
|
|
|
*/
|
2017-04-06 09:48:39 +01:00
|
|
|
protected function getSymfony_Component_DependencyInjection_Tests_Fixtures_TestServiceSubscriberService()
|
2017-02-21 22:24:03 +00:00
|
|
|
{
|
2017-04-06 09:48:39 +01:00
|
|
|
return $this->services['Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber'] = new \Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber();
|
2017-02-21 22:24:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the 'foo_service' service.
|
|
|
|
*
|
|
|
|
* This service is shared.
|
|
|
|
* This method always returns the same instance of the service.
|
|
|
|
*
|
2017-04-04 18:35:51 +01:00
|
|
|
* This service is autowired.
|
2017-02-21 22:24:03 +00:00
|
|
|
*
|
2017-04-06 09:48:39 +01:00
|
|
|
* @return \Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber A Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber instance
|
2017-02-21 22:24:03 +00:00
|
|
|
*/
|
|
|
|
protected function getFooServiceService()
|
|
|
|
{
|
2017-04-06 09:48:39 +01:00
|
|
|
return $this->services['foo_service'] = new \Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber(new \Symfony\Component\DependencyInjection\ServiceLocator(array('Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition' => function () {
|
|
|
|
$f = function (\Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition $v) { return $v; }; return $f(${($_ = isset($this->services['autowired.Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition']) ? $this->services['autowired.Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition'] : $this->getAutowired_Symfony_Component_DependencyInjection_Tests_Fixtures_CustomDefinitionService()) && false ?: '_'});
|
|
|
|
}, 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber' => function () {
|
|
|
|
$f = function (\Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber $v) { return $v; }; return $f(${($_ = isset($this->services['Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber']) ? $this->services['Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber'] : $this->get('Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber')) && false ?: '_'});
|
2017-02-21 22:24:03 +00:00
|
|
|
}, 'bar' => function () {
|
2017-04-06 09:48:39 +01:00
|
|
|
$f = function (\Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition $v) { return $v; }; return $f(${($_ = isset($this->services['Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber']) ? $this->services['Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber'] : $this->get('Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber')) && false ?: '_'});
|
2017-02-21 22:24:03 +00:00
|
|
|
}, 'baz' => function () {
|
2017-04-06 09:48:39 +01:00
|
|
|
$f = function (\Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition $v) { return $v; }; return $f(${($_ = isset($this->services['autowired.Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition']) ? $this->services['autowired.Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition'] : $this->getAutowired_Symfony_Component_DependencyInjection_Tests_Fixtures_CustomDefinitionService()) && false ?: '_'});
|
2017-02-21 22:24:03 +00:00
|
|
|
})));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-06 09:48:39 +01:00
|
|
|
* Gets the 'autowired.Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition' service.
|
2017-02-21 22:24:03 +00:00
|
|
|
*
|
|
|
|
* This service is shared.
|
|
|
|
* This method always returns the same instance of the service.
|
|
|
|
*
|
|
|
|
* This service is private.
|
|
|
|
* If you want to be able to request this service from the container directly,
|
|
|
|
* make it public, otherwise you might end up with broken code.
|
|
|
|
*
|
2017-04-04 18:35:51 +01:00
|
|
|
* This service is autowired.
|
2017-02-21 22:24:03 +00:00
|
|
|
*
|
2017-04-06 09:48:39 +01:00
|
|
|
* @return \Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition A Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition instance
|
2017-02-21 22:24:03 +00:00
|
|
|
*/
|
2017-04-06 09:48:39 +01:00
|
|
|
protected function getAutowired_Symfony_Component_DependencyInjection_Tests_Fixtures_CustomDefinitionService()
|
2017-02-21 22:24:03 +00:00
|
|
|
{
|
2017-04-06 09:48:39 +01:00
|
|
|
return $this->services['autowired.Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition'] = new \Symfony\Component\DependencyInjection\Tests\Fixtures\CustomDefinition();
|
2017-02-21 22:24:03 +00:00
|
|
|
}
|
|
|
|
}
|