Bolt\Controller\ExceptionControllerInterface::systemCheck PHP Method

systemCheck() public method

System check exceptions.
public systemCheck ( string $type, array $messages = [], array $context = [] ) : Response | null
$type string
$messages array
$context array
return Symfony\Component\HttpFoundation\Response | null
    public function systemCheck($type, $messages = [], $context = []);

Usage Example

コード例 #1
0
ファイル: Cache.php プロジェクト: bolt/bolt
 /**
  * {@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;
 }
All Usage Examples Of Bolt\Controller\ExceptionControllerInterface::systemCheck
ExceptionControllerInterface