Bolt\Configuration\ResourceManager::getPath PHP Method

getPath() public method

Subdirectories are automatically parsed to correct filesystem. For example: $bar = getPath('root/foo/bar');
public getPath ( string $name ) : string
$name string Name of path
return string
    public function getPath($name)
    {
        return $this->getPathObject($name)->string();
    }

Usage Example

Esempio n. 1
0
File: Cache.php Progetto: 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\Configuration\ResourceManager::getPath