Hostnet\Bundle\WebpackBundle\EventListener\RequestListener::onRequest PHP Method

onRequest() public method

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.
    public function onRequest(GetResponseEvent $event)
    {
        if (!$event->isMasterRequest()) {
            return;
        }
        $this->guard->rebuild();
    }