Bolt\Controller\ExceptionControllerInterface::systemCheck PHP 메소드

systemCheck() 공개 메소드

System check exceptions.
public systemCheck ( string $type, array $messages = [], array $context = [] ) : Response | null
$type string
$messages array
$context array
리턴 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