public function __construct(AspectKernel $kernel)
{
$this->kernel = $kernel;
$this->options = $kernel->getOptions();
$this->cacheDir = $this->options['cacheDir'];
$this->appDir = $this->options['appDir'];
if ($this->cacheDir && file_exists($this->cacheDir . self::CACHE_FILE_NAME)) {
$this->cacheState = (include $this->cacheDir . self::CACHE_FILE_NAME);
}
}