public function __construct(EventDispatcherInterface $eventDispatcher, $cachePath, $basepath)
{
$this->eventDispatcher = $eventDispatcher;
$this->cachePath = null !== $cachePath ? rtrim($cachePath, DIRECTORY_SEPARATOR) : null;
$this->basepath = $basepath;
}