Class

eZ\Publish\Core\Base\ServiceContainer

class ServiceContainer implements Container

Container implementation wrapping Symfony container component.

Provides cache generation.

Methods

__construct(string|ContainerInterface $container, string $installDir, string $cacheDir, bool $debug = false, bool $bypassCache = false)

Repository getRepository()

Get Repository object.

ContainerBuilder getInnerContainer()

object get(string $id)

Convenience method to inner container.

mixed getParameter(string $name)

Convenience method to inner container.

Details

at line 75
public __construct(string|ContainerInterface $container, string $installDir, string $cacheDir, bool $debug = false, bool $bypassCache = false)

Parameters

string|ContainerInterface $container Path to the container file or container instance
string $installDir Installation directory, required by default 'containerBuilder.php' file
string $cacheDir Directory where PHP container cache will be stored
bool $debug Default false should be used for production, if true resources will be checked and cache will be regenerated if necessary
bool $bypassCache Default false should be used for production, if true completely bypasses the cache

at line 93
public Repository getRepository()

Get Repository object.

Public API for

Return Value

Repository

at line 101
public ContainerBuilder getInnerContainer()

Return Value

ContainerBuilder

at line 113
public object get(string $id)

Convenience method to inner container.

Parameters

string $id

Return Value

object

at line 125
public mixed getParameter(string $name)

Convenience method to inner container.

Parameters

string $name

Return Value

mixed