PHP Class KernelLoader

Afficher le fichier Open project: forkcms/forkcms Class Usage Examples

Protected Properties

Свойство Type Description
$kernel Symfony\Component\HttpKernel\KernelInterface

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
get ( string $reference ) : object Gets a service by id.
getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
getKernel ( ) : Kernel
has ( string $reference ) : boolean Returns true if the service id is defined.
passContainerToModels ( ) This is fairly dirty, but so is having static method classes for models.
setKernel ( Symfony\Component\HttpKernel\KernelInterface $kernel = null )

Method Details

__construct() public méthode

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
$kernel Symfony\Component\HttpKernel\KernelInterface

get() public méthode

Gets a service by id.
public get ( string $reference ) : object
$reference string The service id
Résultat object The service

getContainer() public méthode

public getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
Résultat Symfony\Component\DependencyInjection\ContainerInterface

getKernel() public méthode

public getKernel ( ) : Kernel
Résultat Kernel

has() public méthode

Returns true if the service id is defined.
public has ( string $reference ) : boolean
$reference string The service id
Résultat boolean true if the service id is defined, false otherwise

passContainerToModels() public méthode

Consider this a temporary solution until we have genuine models available.

setKernel() public méthode

public setKernel ( Symfony\Component\HttpKernel\KernelInterface $kernel = null )
$kernel Symfony\Component\HttpKernel\KernelInterface

Property Details

$kernel protected_oe property

protected KernelInterface,Symfony\Component\HttpKernel $kernel
Résultat Symfony\Component\HttpKernel\KernelInterface