PHP Class Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener

Author: Fabien Potencier ([email protected])
Inheritance: extends Symfony\Component\HttpKernel\EventListener\TestSessionListener
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$container

Public Methods

Method Description
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
onKernelRequest ( GetResponseEvent $event )
onKernelResponse ( FilterResponseEvent $event ) Checks if session was initialized and saves if current request is master Runs on 'kernel.response' in test environment

Method Details

__construct() public method

public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface

onKernelRequest() public method

public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

onKernelResponse() public method

Checks if session was initialized and saves if current request is master Runs on 'kernel.response' in test environment
public onKernelResponse ( FilterResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterResponseEvent

Property Details

$container protected property

protected $container