Property | Type | Description | |
---|---|---|---|
$bypassCache | boolean | Holds flag whether cache should be bypassed. | |
$cacheDir | string | Holds cache directory path. | |
$containerClassName | string | Holds class name for generated container cache. | |
$debug | boolean | Holds debug flag for cache service. | |
$innerContainer | Symfony\Component\DependencyInjection\Container | |
Holds inner Symfony container instance. | |
$installDir | string | Holds installation directory path. |
Method | Description | |
---|---|---|
__construct ( string | Symfony\Component\DependencyInjection\ContainerInterface $container, string $installDir, string $cacheDir, boolean $debug = false, boolean $bypassCache = false ) | ||
get ( string $id ) : object | Convenience method to inner container. | |
getInnerContainer ( ) : |
||
getParameter ( string $name ) : mixed | Convenience method to inner container. | |
getRepository ( ) : eZ\Publish\API\Repository\Repository | Get Repository object. |
Method | Description | |
---|---|---|
dumpContainer ( Symfony\Component\Config\ConfigCache $cache ) | Dumps the service container to PHP code in the cache. | |
getContainer ( ) | Returns ContainerBuilder by including the default file 'containerBuilder.php' from settings directory. | |
initializeContainer ( ) | Initializes inner container. | |
prepareDirectory ( string $directory, string $name ) | Checks for existence of given $directory and tries to create it if found missing. |
public __construct ( string | Symfony\Component\DependencyInjection\ContainerInterface $container, string $installDir, string $cacheDir, boolean $debug = false, boolean $bypassCache = false ) | ||
$container | string | Symfony\Component\DependencyInjection\ContainerInterface | Path to the container file or container instance |
$installDir | string | Installation directory, required by default 'containerBuilder.php' file |
$cacheDir | string | Directory where PHP container cache will be stored |
$debug | boolean | Default false should be used for production, if true resources will be checked and cache will be regenerated if necessary |
$bypassCache | boolean | Default false should be used for production, if true completely bypasses the cache |
protected dumpContainer ( Symfony\Component\Config\ConfigCache $cache ) | ||
$cache | Symfony\Component\Config\ConfigCache |
protected getContainer ( ) |
public getInnerContainer ( ) : |
||
return |
public getParameter ( string $name ) : mixed | ||
$name | string | |
return | mixed |
public getRepository ( ) : eZ\Publish\API\Repository\Repository | ||
return | eZ\Publish\API\Repository\Repository |
protected initializeContainer ( ) |
protected prepareDirectory ( string $directory, string $name ) | ||
$directory | string | Path to the directory |
$name | string | Used for exception message |
protected bool $bypassCache | ||
return | boolean |
protected string $cacheDir | ||
return | string |
protected string $containerClassName | ||
return | string |
protected bool $debug | ||
return | boolean |
protected Container,Symfony\Component\DependencyInjection|ContainerBuilder,Symfony\Component\DependencyInjection $innerContainer | ||
return | Symfony\Component\DependencyInjection\Container | |
protected string $installDir | ||
return | string |