Symfony\Component\HttpKernel\Kernel
The Kernel is the heart of the Symfony system.
It manages an environment made of bundles.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Kernel
implements
KernelInterface,TerminableInterface
{
- // constants
- const VERSION = '2.3.2';
- const VERSION_ID = '20302';
- const MAJOR_VERSION = '2';
- const MINOR_VERSION = '3';
- const RELEASE_VERSION = '2';
- const EXTRA_VERSION = '';
- // members
- protected array $bundles;
- protected $bundleMap;
- protected $container;
- protected $rootDir;
- protected $environment;
- protected $debug;
- protected $booted;
- protected $name;
- protected $startTime;
- protected $classes;
- protected $loadClassCache;
- // methods
- public void __construct()
- public void init()
- public void __clone()
- public void boot()
- public void terminate()
- public void shutdown()
- public void handle()
- protected HttpKernel getHttpKernel()
- public void getBundles()
- public void isClassInActiveBundle()
- public void getBundle()
- public string|array locateResource()
- public void getName()
- public void getEnvironment()
- public void isDebug()
- public void getRootDir()
- public void getContainer()
- public void loadClassCache()
- public void setClassCache()
- public void getStartTime()
- public void getCacheDir()
- public void getLogDir()
- public void getCharset()
- protected void doLoadClassCache()
- protected void initializeBundles()
- protected string getContainerClass()
- protected string getContainerBaseClass()
- protected void initializeContainer()
- protected array getKernelParameters()
- protected array getEnvParameters()
- protected ContainerBuilder buildContainer()
- protected void prepareContainer()
- protected ContainerBuilder getContainerBuilder()
- protected void dumpContainer()
- protected DelegatingLoader getContainerLoader()
- public static string stripComments()
- public void serialize()
- public void unserialize()
Hierarchy
Implements
Constants
Name | Value |
---|---|
VERSION | '2.3.2' |
VERSION_ID | '20302' |
MAJOR_VERSION | '2' |
MINOR_VERSION | '3' |
RELEASE_VERSION | '2' |
EXTRA_VERSION | '' |
Members
protected
- $booted
- $bundleMap
- $bundles — array
- $classes
- $container
- $debug
- $environment
- $loadClassCache
- $name
- $rootDir
- $startTime
Methods
protected
- buildContainer() — Builds the service container.
- doLoadClassCache()
- dumpContainer() — Dumps the service container to PHP code in the cache.
- getContainerBaseClass() — Gets the container's base class.
- getContainerBuilder() — Gets a new ContainerBuilder instance used to build the service container.
- getContainerClass() — Gets the container class.
- getContainerLoader() — Returns a loader for the container.
- getEnvParameters() — Gets the environment parameters.
- getHttpKernel() — Gets a http kernel from the container
- getKernelParameters() — Returns the kernel parameters.
- initializeBundles() — Initializes the data structures related to the bundle management.
- initializeContainer() — Initializes the service container.
- prepareContainer() — Prepares the ContainerBuilder before it is compiled.
public
- __construct() — Constructor.
- __clone()
- boot() — Boots the current kernel.
- getBundle() — {@inheritdoc}
- getBundles() — {@inheritdoc}
- getCacheDir() — {@inheritdoc}
- getCharset() — {@inheritdoc}
- getContainer() — {@inheritdoc}
- getEnvironment() — {@inheritdoc}
- getLogDir() — {@inheritdoc}
- getName() — {@inheritdoc}
- getRootDir() — {@inheritdoc}
- getStartTime() — {@inheritdoc}
- handle() — {@inheritdoc}
- init()
- isClassInActiveBundle() — {@inheritdoc}
- isDebug() — {@inheritdoc}
- loadClassCache() — Loads the PHP class cache.
- locateResource() — Returns the file path for a given resource.
- serialize()
- setClassCache() — Used internally.
- shutdown() — {@inheritdoc}
- stripComments() — Removes comments from a PHP source string.
- terminate() — {@inheritdoc}
- unserialize()