KernelInterface

The Kernel is the heart of the Symfony system. It manages an environment made of bundles.
implements Serializable, Symfony\Component\HttpKernel\HttpKernelInterface

Known implementers

ApiGen\DependencyInjection\AppKernel , Symfony\Component\HttpKernel\Kernel

Methods Summary
public
# registerBundles( )
Returns an array of bundles to register.
public
# registerContainerConfiguration( Symfony\Component\Config\Loader\LoaderInterface $loader )
Loads the container configuration.
public
# boot( )
Boots the current kernel.
public
# shutdown( )
Shutdowns the kernel. This method is mainly useful when doing functional testing.
public
# getBundles( )
Gets the registered bundle instances.
public
# getBundle( string $name , bool $first = true )
Returns a bundle and optionally its descendants by its name.
public
# locateResource( string $name , string $dir = NULL, bool $first = true )
Returns the file path for a given resource. A Resource can be a file or a directory. The resource name must follow the following pattern: "@BundleName/path/to/a/file.something" where BundleName is the name of the bundle and the remaining part is the relative path in the bundle. If $dir is passed, and the first segment of the path is "Resources", this method will look for a file named: $dir/<BundleName>/path/without/Resources before looking in the bundle resource folder.
public
# getName( )
Gets the name of the kernel.
public
# getEnvironment( )
Gets the environment.
public
# isDebug( )
Checks if debug mode is enabled.
public
# getRootDir( )
Gets the application root dir (path of the project's Kernel class).
public
# getContainer( )
Gets the current container.
public
# getStartTime( )
Gets the request start time (not available if debug is disabled).
public
# getCacheDir( )
Gets the cache directory.
public
# getLogDir( )
Gets the log directory.
public
# getCharset( )
Gets the charset of the application.
Constants inherited from Symfony\Component\HttpKernel\HttpKernelInterface
MASTER_REQUEST , SUB_REQUEST