PHP 클래스 eZ\Publish\Core\Base\ServiceContainer

Provides cache generation.
상속: implements eZ\Publish\API\Container
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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 | Symfony\Component\DependencyInjection\ContainerBuilder Holds inner Symfony container instance.
$installDir string Holds installation directory path.

공개 메소드들

메소드 설명
__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 ( ) : ContainerBuilder
getParameter ( string $name ) : mixed Convenience method to inner container.
getRepository ( ) : eZ\Publish\API\Repository\Repository Get Repository object.

보호된 메소드들

메소드 설명
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.

메소드 상세

__construct() 공개 메소드

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

dumpContainer() 보호된 메소드

Dumps the service container to PHP code in the cache.
protected dumpContainer ( Symfony\Component\Config\ConfigCache $cache )
$cache Symfony\Component\Config\ConfigCache

get() 공개 메소드

Convenience method to inner container.
public get ( string $id ) : object
$id string
리턴 object

getContainer() 보호된 메소드

Returns ContainerBuilder by including the default file 'containerBuilder.php' from settings directory.
protected getContainer ( )

getInnerContainer() 공개 메소드

public getInnerContainer ( ) : ContainerBuilder
리턴 Symfony\Component\DependencyInjection\ContainerBuilder

getParameter() 공개 메소드

Convenience method to inner container.
public getParameter ( string $name ) : mixed
$name string
리턴 mixed

getRepository() 공개 메소드

Public API for
public getRepository ( ) : eZ\Publish\API\Repository\Repository
리턴 eZ\Publish\API\Repository\Repository

initializeContainer() 보호된 메소드

Initializes inner container.
protected initializeContainer ( )

prepareDirectory() 보호된 메소드

Checks for existence of given $directory and tries to create it if found missing.
protected prepareDirectory ( string $directory, string $name )
$directory string Path to the directory
$name string Used for exception message

프로퍼티 상세

$bypassCache 보호되어 있는 프로퍼티

Holds flag whether cache should be bypassed.
protected bool $bypassCache
리턴 boolean

$cacheDir 보호되어 있는 프로퍼티

Holds cache directory path.
protected string $cacheDir
리턴 string

$containerClassName 보호되어 있는 프로퍼티

Holds class name for generated container cache.
protected string $containerClassName
리턴 string

$debug 보호되어 있는 프로퍼티

Holds debug flag for cache service.
protected bool $debug
리턴 boolean

$innerContainer 보호되어 있는 프로퍼티

Holds inner Symfony container instance.
protected Container,Symfony\Component\DependencyInjection|ContainerBuilder,Symfony\Component\DependencyInjection $innerContainer
리턴 Symfony\Component\DependencyInjection\Container | Symfony\Component\DependencyInjection\ContainerBuilder

$installDir 보호되어 있는 프로퍼티

Holds installation directory path.
protected string $installDir
리턴 string