PHP Класс Hostnet\Bundle\WebpackBundle\EventListener\RequestListener

Автор: Harold Iedema ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( CacheGuard $guard ) Create the listener
onRequest ( GetResponseEvent $event ) On Request received check the validity of the webpack cache.

Описание методов

__construct() публичный Метод

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

onRequest() публичный Метод

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.