PHP 클래스 Hostnet\Bundle\WebpackBundle\EventListener\RequestListener

저자: Harold Iedema ([email protected])
파일 보기 프로젝트 열기: hostnet/webpack-bundle

공개 메소드들

메소드 설명
__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.