Symfony\Component\HttpKernel\KernelInterface
The Kernel is the heart of the Symfony system.
It manages an environment made of bundles.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
interface KernelInterface
extends HttpKernelInterface, Serializable
{
- // Inherited constants from HttpKernelInterface
- const MASTER_REQUEST = 1;
- const SUB_REQUEST = 2;
- // methods
- public array registerBundles()
- public void registerContainerConfiguration()
- public void boot()
- public void shutdown()
- public array getBundles()
- public Boolean isClassInActiveBundle()
- public array getBundle()
- public string|array locateResource()
- public string getName()
- public string getEnvironment()
- public Boolean isDebug()
- public string getRootDir()
- public ContainerInterface getContainer()
- public integer getStartTime()
- public string getCacheDir()
- public string getLogDir()
- public string getCharset()
- // Inherited methods from HttpKernelInterface
- public Response handle()
- // Inherited methods from Serializable
- public string serialize()
- public void unserialize()
Hierarchy
Extends
Implemented by
Constants
Name | Value |
---|---|
MASTER_REQUEST | 1 |
SUB_REQUEST | 2 |
Methods
public
- boot() — Boots the current kernel.
- getBundle() — Returns a bundle and optionally its descendants by its name.
- getBundles() — Gets the registered bundle instances.
- getCacheDir() — Gets the cache directory.
- getCharset() — Gets the charset of the application.
- getContainer() — Gets the current container.
- getEnvironment() — Gets the environment.
- getLogDir() — Gets the log directory.
- getName() — Gets the name of the kernel
- getRootDir() — Gets the application root dir.
- getStartTime() — Gets the request start time (not available if debug is disabled).
- isClassInActiveBundle() — Checks if a given class name belongs to an active bundle.
- isDebug() — Checks if debug mode is enabled.
- locateResource() — Returns the file path for a given resource.
- registerBundles() — Returns an array of bundles to registers.
- registerContainerConfiguration() — Loads the container configuration
- shutdown() — Shutdowns the kernel.
Inherited from Symfony\Component\HttpKernel\HttpKernelInterface
public
- handle() — Handles a Request to convert it to a Response.
Inherited from Serializable
public
- serialize() — String representation of object
- unserialize() — Constructs the object