PHP Class Hostnet\Bundle\WebpackBundle\EventListener\RequestListener

Author: Harold Iedema ([email protected])
Afficher le fichier Open project: hostnet/webpack-bundle

Méthodes publiques

Méthode Description
__construct ( CacheGuard $guard ) Create the listener
onRequest ( GetResponseEvent $event ) On Request received check the validity of the webpack cache.

Method Details

__construct() public méthode

Create the listener
public __construct ( CacheGuard $guard )
$guard Hostnet\Component\Webpack\Asset\CacheGuard Guards the cache and is able to rebuild/update it.

onRequest() public méthode

On Request received check the validity of the webpack cache.
public onRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent the response to send to te browser, we don't we only ensure the cache is there.