PHP 클래스 Hostnet\Component\Webpack\Asset\CacheGuard

파일 보기 프로젝트 열기: hostnet/webpack-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Compiler $compiler, Hostnet\Component\Webpack\Asset\Dumper $dumper, Tracker $tracker, Psr\Log\LoggerInterface $logger ) Create Cache guard.
rebuild ( ) Rebuild the cache, check to see if it's still valid and rebuild if it's outdated.

메소드 상세

__construct() 공개 메소드

Create Cache guard.
public __construct ( Compiler $compiler, Hostnet\Component\Webpack\Asset\Dumper $dumper, Tracker $tracker, Psr\Log\LoggerInterface $logger )
$compiler Compiler the compiler used to compile the assets using webpack
$dumper Hostnet\Component\Webpack\Asset\Dumper the dumper of the assets compiled by webpack
$tracker Tracker keeps track of the changes in the assets compared with last build
$logger Psr\Log\LoggerInterface used to write progress reports to (info & debug)

rebuild() 공개 메소드

Rebuild the cache, check to see if it's still valid and rebuild if it's outdated.
public rebuild ( )