/**
* {@inheritdoc}
*/
public function check(ExceptionControllerInterface $exceptionController)
{
$path = $this->resourceManager->getPath('cache');
if (!is_dir($path)) {
return $exceptionController->systemCheck(Validator::CHECK_CACHE, [], ['path' => $path]);
}
if (!is_writable($path)) {
return $exceptionController->systemCheck(Validator::CHECK_CACHE, [], ['path' => $path]);
}
return null;
}