Kernel

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

Known subclasses

ApiGen\DependencyInjection\AppKernel
Abstract

Open source code
Methods Summary
public
# __construct( string $environment , bool $debug )
Constructor.
public
# __clone( )
public
# boot( )
Boots the current kernel.

Implementation of

public
# terminate( Symfony\Component\HttpFoundation\Request $request , Symfony\Component\HttpFoundation\Response $response )
public
public
# handle( Symfony\Component\HttpFoundation\Request $request , $type = 1, $catch = true )
protected
# getHttpKernel( )
Gets a HTTP kernel from the container.
public
public
# getBundle( $name , $first = true )
public
# locateResource( $name , $dir = NULL, $first = true )
public
public
public
public
public
# getProjectDir( )
Gets the application root dir (path of the project's composer file).
public
public
# loadClassCache( string $name = 'classes', string $extension = '.php' )
Loads the PHP class cache. This methods only registers the fact that you want to load the cache classes. The cache will actually only be loaded when the Kernel is booted. That optimization is mainly useful when using the HttpCache class in which case the class cache is not loaded if the Response is in the cache.

Deprecated


public
public
public
public
protected
# doLoadClassCache( $name , $extension )

Deprecated


protected
# initializeBundles( )
Initializes the data structures related to the bundle management. - the bundles property maps a bundle name to the bundle instance, - the bundleMap property maps a bundle name to the bundle inheritance hierarchy (most derived bundle first).
protected
# build( Symfony\Component\DependencyInjection\ContainerBuilder $container )
The extension point similar to the Bundle::build() method. Use this method to register compiler passes and manipulate the container during the building process.
protected
# getContainerClass( )
Gets the container class.
protected
# getContainerBaseClass( )
Gets the container's base class. All names except Container must be fully qualified.
protected
# initializeContainer( )
Initializes the service container. The cached version of the service container is used when fresh, otherwise the container is built.
protected
# getKernelParameters( )
Returns the kernel parameters.
protected
# getEnvParameters( )
Gets the environment parameters. Only the parameters starting with "SYMFONY__" are considered.

Deprecated


protected
# buildContainer( )
Builds the service container.
protected
# prepareContainer( Symfony\Component\DependencyInjection\ContainerBuilder $container )
Prepares the ContainerBuilder before it is compiled.
protected
# getContainerBuilder( )
Gets a new ContainerBuilder instance used to build the service container.
protected
# dumpContainer( Symfony\Component\Config\ConfigCache $cache , Symfony\Component\DependencyInjection\ContainerBuilder $container , string $class , string $baseClass )
Dumps the service container to PHP code in the cache.
protected
# getContainerLoader( Symfony\Component\DependencyInjection\ContainerInterface $container )
Returns a loader for the container.
public static
# stripComments( string $source )
Removes comments from a PHP source string. We don't use the PHP php_strip_whitespace() function as we want the content to be readable and well-formatted.
public
public
# unserialize( $data )
Constants Summary
public string VERSION
# '3.3.8'
public int VERSION_ID
# 30308
public int MAJOR_VERSION
# 3
public int MINOR_VERSION
# 3
public int RELEASE_VERSION
# 8
public string EXTRA_VERSION
# ''
public string END_OF_MAINTENANCE
# '01/2018'
public string END_OF_LIFE
# '07/2018'
Properties Summary
protected \Symfony\Component\HttpKernel\Bundle\BundleInterface[] $bundles

# array ( )
protected $bundleMap

# NULL
protected $container

# NULL
protected $rootDir

# NULL
protected $environment

# NULL
protected $debug

# NULL
protected $booted

# false
protected $name

# NULL
protected $startTime

# NULL
protected $loadClassCache

# NULL