Property | Type | Description | |
---|---|---|---|
$booted | |||
$bundleDirs | |||
$bundleMap | |||
$bundles | |||
$classes | |||
$container | |||
$debug | |||
$environment | |||
$name | |||
$rootDir | |||
$startTime |
Method | 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 ) |
Method | 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 ( ) : |
||
return | 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 |
return | Symfony\Component\HttpKernel\Bundle\BundleInterface | Array | A BundleInterface instance or an array of BundleInterface instances if $first is false |
public getBundleDirs ( ) : array | ||
return | array | An array of directories where bundles can be stored |
public getBundleForClass ( string $class ) : string | ||
$class | string | A class name |
return | string | The Bundle name or null if the class does not belongs to a bundle |
public getBundles ( ) : array | ||
return | array | An array of registered bundle names |
public getCacheDir ( ) : string | ||
return | string | The cache directory |
public getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface | ||
return | Symfony\Component\DependencyInjection\ContainerInterface | A ContainerInterface instance |
protected getContainerBaseClass ( ) : string | ||
return | string |
protected getContainerClass ( ) : string | ||
return | 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 |
return | Symfony\Component\Config\Loader\DelegatingLoader | The loader |
protected getEnvParameters ( ) : array | ||
return | array | An array of parameters |
public getEnvironment ( ) : string | ||
return | string | The current environment |
protected getHttpKernel ( ) : |
||
return |
protected getKernelParameters ( ) : array | ||
return | array | An array of kernel parameters |
public getRootDir ( ) : string | ||
return | string | The application root dir |
public getStartTime ( ) : integer | ||
return | integer | The request start timestamp |
public handle ( |
||
$request |
protected initializeBundles ( ) |
public isClassInActiveBundle ( string $class ) : boolean | ||
$class | string | A class name |
return | 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 |
return | 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 |
return | string | The PHP string with the comments removed |