Свойство | Type | Description | |
---|---|---|---|
$booted | |||
$bundleDirs | |||
$bundleMap | |||
$bundles | |||
$classes | |||
$container | |||
$debug | |||
$environment | |||
$name | |||
$rootDir | |||
$startTime |
Méthode | Description | |
---|---|---|
__clone ( ) | ||
__construct ( string $environment, boolean $debug ) | Constructor. | |
addClassesToCache ( array $classes ) | ||
boot ( ) | Boots the current kernel. | |
getBundle ( string $name, boolean $first = true ) : Symfony\Component\HttpKernel\Bundle\BundleInterface | Array | Returns a bundle and optionally its descendants by its name. | |
getBundleDirs ( ) : array | Gets the directories where bundles can be stored. | |
getBundleForClass ( string $class ) : string | Returns the Bundle name for a given class. | |
getBundles ( ) : array | Gets the registered bundle names. | |
getCacheDir ( ) | ||
getCacheDir ( ) : string | Gets the cache directory. | |
getContainer ( ) | ||
getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface | Gets the current container. | |
getEnvironment ( ) | ||
getEnvironment ( ) : string | Gets the environment. | |
getKernelParameters ( ) | ||
getLogDir ( ) | ||
getLogDir ( ) : string | Gets the log directory. | |
getName ( ) | ||
getName ( ) : string | Gets the name of the kernel | |
getRootDir ( ) | ||
getRootDir ( ) : string | Gets the application root dir. | |
getSafeName ( ) | ||
getStartTime ( ) | ||
getStartTime ( ) : integer | Gets the request start time (not available if debug is disabled). | |
handle ( |
||
init ( ) | ||
isBooted ( ) : boolean | Checks whether the current kernel has been booted or not. | |
isClassInActiveBundle ( string $class ) : boolean | Checks if a given class name belongs to an active bundle. | |
isDebug ( ) | ||
isDebug ( ) : boolean | Checks if debug mode is enabled. | |
loadClassCache ( string $name = 'classes', string $extension = '.php' ) | Loads the PHP class cache. | |
locateResource ( string $name, string $dir = null, boolean $first = true ) : string | array | Returns the file path for a given resource. | |
reboot ( ) | Reboots the kernel. | |
registerBundleDirs ( ) | ||
registerBundles ( ) | ||
registerContainerConfiguration ( Symfony\Component\DependencyInjection\Loader\LoaderInterface $loader ) | ||
registerRootDir ( ) | ||
serialize ( ) | ||
setClassCache ( array $classes ) | Used internally. | |
shutdown ( ) | Shutdowns the kernel. | |
stripComments ( string $source ) : string | Removes comments from a PHP source string. | |
unserialize ( $data ) |
Méthode | Description | |
---|---|---|
buildContainer ( $class, $file ) | ||
buildContainer ( ) : |
Builds the service container. | |
dumpContainer ( Symfony\Component\Config\ConfigCache $cache, |
Dumps the service container to PHP code in the cache. | |
getContainerBaseClass ( ) : string | Gets the container's base class. | |
getContainerClass ( ) : string | Gets the container class. | |
getContainerLoader ( Symfony\Component\DependencyInjection\ContainerInterface $container ) | ||
getContainerLoader ( Symfony\Component\DependencyInjection\ContainerInterface $container ) : Symfony\Component\Config\Loader\DelegatingLoader | Returns a loader for the container. | |
getEnvParameters ( ) | ||
getEnvParameters ( ) : array | Gets the environment parameters. | |
getHttpKernel ( ) : |
Gets a http kernel from the container | |
getKernelParameters ( ) : array | Returns the kernel parameters. | |
initializeBundles ( ) | Initializes the data structures related to the bundle management. | |
initializeContainer ( ) | ||
needsReload ( $class, $location ) | ||
writeCacheFile ( $file, $content ) |
public __construct ( string $environment, boolean $debug ) | ||
$environment | string | The environment |
$debug | boolean | Whether to enable debugging or not |
public boot ( ) |
protected buildContainer ( ) : |
||
Résultat | The compiled service container |
protected dumpContainer ( Symfony\Component\Config\ConfigCache $cache, |
||
$cache | Symfony\Component\Config\ConfigCache | The config cache |
$container | The service container | |
$class | string | The name of the class to generate |
$baseClass | string | The name of the container's base class |
public getBundle ( string $name, boolean $first = true ) : Symfony\Component\HttpKernel\Bundle\BundleInterface | Array | ||
$name | string | Bundle name |
$first | boolean | Whether to return the first bundle only or together with its descendants |
Résultat | Symfony\Component\HttpKernel\Bundle\BundleInterface | Array | A BundleInterface instance or an array of BundleInterface instances if $first is false |
public getBundleDirs ( ) : array | ||
Résultat | array | An array of directories where bundles can be stored |
public getBundleForClass ( string $class ) : string | ||
$class | string | A class name |
Résultat | string | The Bundle name or null if the class does not belongs to a bundle |
public getBundles ( ) : array | ||
Résultat | array | An array of registered bundle names |
public getCacheDir ( ) : string | ||
Résultat | string | The cache directory |
public getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface | ||
Résultat | Symfony\Component\DependencyInjection\ContainerInterface | A ContainerInterface instance |
protected getContainerBaseClass ( ) : string | ||
Résultat | string |
protected getContainerClass ( ) : string | ||
Résultat | string | The container class |
protected getContainerLoader ( Symfony\Component\DependencyInjection\ContainerInterface $container ) | ||
$container | Symfony\Component\DependencyInjection\ContainerInterface |
protected getContainerLoader ( Symfony\Component\DependencyInjection\ContainerInterface $container ) : Symfony\Component\Config\Loader\DelegatingLoader | ||
$container | Symfony\Component\DependencyInjection\ContainerInterface | The service container |
Résultat | Symfony\Component\Config\Loader\DelegatingLoader | The loader |
protected getEnvParameters ( ) : array | ||
Résultat | array | An array of parameters |
public getEnvironment ( ) : string | ||
Résultat | string | The current environment |
protected getHttpKernel ( ) : |
||
Résultat |
protected getKernelParameters ( ) : array | ||
Résultat | array | An array of kernel parameters |
public getRootDir ( ) : string | ||
Résultat | string | The application root dir |
public getStartTime ( ) : integer | ||
Résultat | integer | The request start timestamp |
public handle ( |
||
$request |
protected initializeBundles ( ) |
public isClassInActiveBundle ( string $class ) : boolean | ||
$class | string | A class name |
Résultat | boolean | true if the class belongs to an active bundle, false otherwise |
public loadClassCache ( string $name = 'classes', string $extension = '.php' ) | ||
$name | string | The cache name prefix |
$extension | string | File extension of the resulting file |
public locateResource ( string $name, string $dir = null, boolean $first = true ) : string | array | ||
$name | string | A resource name to locate |
$dir | string | A directory where to look for the resource first |
$first | boolean | Whether to return the first path or paths for all matching bundles |
Résultat | string | array | The absolute path of the resource or an array if $first is false |
public reboot ( ) |
abstract public registerContainerConfiguration ( Symfony\Component\DependencyInjection\Loader\LoaderInterface $loader ) | ||
$loader | Symfony\Component\DependencyInjection\Loader\LoaderInterface |
public setClassCache ( array $classes ) | ||
$classes | array |
public shutdown ( ) |
public static stripComments ( string $source ) : string | ||
$source | string | A PHP string |
Résultat | string | The PHP string with the comments removed |