Hostnet\Component\Webpack\Asset\CacheGuard::__construct PHP Method

__construct() public method

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)
    public function __construct(Compiler $compiler, Dumper $dumper, Tracker $tracker, LoggerInterface $logger)
    {
        $this->compiler = $compiler;
        $this->dumper = $dumper;
        $this->tracker = $tracker;
        $this->logger = $logger;
    }