162 lines
6.5 KiB
PHP
162 lines
6.5 KiB
PHP
<?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;
|
|
|
|
/**
|
|
* This class has been auto-generated
|
|
* by the Symfony Dependency Injection Component.
|
|
*
|
|
* @final since Symfony 3.3
|
|
*/
|
|
class AdminContainer extends Container
|
|
{
|
|
private $parameters;
|
|
private $targetDirs = [];
|
|
|
|
public function __construct()
|
|
{
|
|
$this->services = [];
|
|
$this->methodMap = [
|
|
'filesystem' => 'getFilesystemService',
|
|
'finder' => 'getFinderService',
|
|
'hashing' => 'getHashingService',
|
|
'hook_configurator' => 'getHookConfiguratorService',
|
|
'hook_provider' => 'getHookProviderService',
|
|
'hook_repository' => 'getHookRepositoryService',
|
|
'theme_manager' => 'getThemeManagerService',
|
|
'theme_validator' => 'getThemeValidatorService',
|
|
];
|
|
$this->privates = [
|
|
'filesystem' => true,
|
|
'finder' => true,
|
|
'hashing' => true,
|
|
'hook_configurator' => true,
|
|
'hook_provider' => true,
|
|
'hook_repository' => true,
|
|
'theme_manager' => true,
|
|
'theme_validator' => true,
|
|
];
|
|
|
|
$this->aliases = [];
|
|
}
|
|
|
|
public function getRemovedIds()
|
|
{
|
|
return [
|
|
'Psr\\Container\\ContainerInterface' => true,
|
|
'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
|
|
'filesystem' => true,
|
|
'finder' => true,
|
|
'hashing' => true,
|
|
'hook_configurator' => true,
|
|
'hook_provider' => true,
|
|
'hook_repository' => true,
|
|
'theme_manager' => true,
|
|
'theme_validator' => true,
|
|
];
|
|
}
|
|
|
|
public function compile()
|
|
{
|
|
throw new LogicException('You cannot compile a dumped container that was already compiled.');
|
|
}
|
|
|
|
public function isCompiled()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function isFrozen()
|
|
{
|
|
@trigger_error(sprintf('The %s() method is deprecated since Symfony 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
|
|
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Gets the private 'filesystem' shared service.
|
|
*
|
|
* @return \Symfony\Component\Filesystem\Filesystem
|
|
*/
|
|
protected function getFilesystemService()
|
|
{
|
|
return $this->services['filesystem'] = new \Symfony\Component\Filesystem\Filesystem();
|
|
}
|
|
|
|
/**
|
|
* Gets the private 'finder' shared service.
|
|
*
|
|
* @return \Symfony\Component\Finder\Finder
|
|
*/
|
|
protected function getFinderService()
|
|
{
|
|
return $this->services['finder'] = new \Symfony\Component\Finder\Finder();
|
|
}
|
|
|
|
/**
|
|
* Gets the private 'hashing' shared service.
|
|
*
|
|
* @return \PrestaShop\PrestaShop\Core\Crypto\Hashing
|
|
*/
|
|
protected function getHashingService()
|
|
{
|
|
return $this->services['hashing'] = new \PrestaShop\PrestaShop\Core\Crypto\Hashing();
|
|
}
|
|
|
|
/**
|
|
* Gets the private 'hook_configurator' shared service.
|
|
*
|
|
* @return \PrestaShop\PrestaShop\Core\Module\HookConfigurator
|
|
*/
|
|
protected function getHookConfiguratorService()
|
|
{
|
|
return $this->services['hook_configurator'] = new \PrestaShop\PrestaShop\Core\Module\HookConfigurator(${($_ = isset($this->services['hook_repository']) ? $this->services['hook_repository'] : $this->getHookRepositoryService()) && false ?: '_'});
|
|
}
|
|
|
|
/**
|
|
* Gets the private 'hook_provider' shared service.
|
|
*
|
|
* @return \PrestaShop\PrestaShop\Adapter\Hook\HookInformationProvider
|
|
*/
|
|
protected function getHookProviderService()
|
|
{
|
|
return $this->services['hook_provider'] = new \PrestaShop\PrestaShop\Adapter\Hook\HookInformationProvider();
|
|
}
|
|
|
|
/**
|
|
* Gets the private 'hook_repository' shared service.
|
|
*
|
|
* @return \PrestaShop\PrestaShop\Core\Module\HookRepository
|
|
*/
|
|
protected function getHookRepositoryService()
|
|
{
|
|
return $this->services['hook_repository'] = new \PrestaShop\PrestaShop\Core\Module\HookRepository(${($_ = isset($this->services['hook_provider']) ? $this->services['hook_provider'] : ($this->services['hook_provider'] = new \PrestaShop\PrestaShop\Adapter\Hook\HookInformationProvider())) && false ?: '_'}, ${($_ = isset($this->services['shop']) ? $this->services['shop'] : $this->get('shop')) && false ?: '_'}, ${($_ = isset($this->services['db']) ? $this->services['db'] : $this->get('db')) && false ?: '_'});
|
|
}
|
|
|
|
/**
|
|
* Gets the private 'theme_manager' shared service.
|
|
*
|
|
* @return \PrestaShop\PrestaShop\Core\Addon\Theme\ThemeManager
|
|
*/
|
|
protected function getThemeManagerService()
|
|
{
|
|
return $this->services['theme_manager'] = new \PrestaShop\PrestaShop\Core\Addon\Theme\ThemeManager(${($_ = isset($this->services['shop']) ? $this->services['shop'] : $this->get('shop')) && false ?: '_'}, ${($_ = isset($this->services['configuration']) ? $this->services['configuration'] : $this->get('configuration')) && false ?: '_'}, ${($_ = isset($this->services['theme_validator']) ? $this->services['theme_validator'] : ($this->services['theme_validator'] = new \PrestaShop\PrestaShop\Core\Addon\Theme\ThemeValidator())) && false ?: '_'}, ${($_ = isset($this->services['employee']) ? $this->services['employee'] : $this->get('employee')) && false ?: '_'}, ${($_ = isset($this->services['filesystem']) ? $this->services['filesystem'] : ($this->services['filesystem'] = new \Symfony\Component\Filesystem\Filesystem())) && false ?: '_'}, ${($_ = isset($this->services['finder']) ? $this->services['finder'] : ($this->services['finder'] = new \Symfony\Component\Finder\Finder())) && false ?: '_'}, ${($_ = isset($this->services['hook_configurator']) ? $this->services['hook_configurator'] : $this->getHookConfiguratorService()) && false ?: '_'});
|
|
}
|
|
|
|
/**
|
|
* Gets the private 'theme_validator' shared service.
|
|
*
|
|
* @return \PrestaShop\PrestaShop\Core\Addon\Theme\ThemeValidator
|
|
*/
|
|
protected function getThemeValidatorService()
|
|
{
|
|
return $this->services['theme_validator'] = new \PrestaShop\PrestaShop\Core\Addon\Theme\ThemeValidator();
|
|
}
|
|
}
|