Crunz\Utils::getRoot PHP Метод

getRoot() публичный статический Метод

Get the root directory by the autoloader file
public static getRoot ( string $autoloader ) : string
$autoloader string
Результат string
    public static function getRoot($autoloader)
    {
        return dirname($autoloader) . '/..';
    }

Usage Example

Пример #1
0
 /**
  * Return absolute path for relative path
  *
  * @param  string $autoloader
  *
  * @return string
  */
 function getroot($autoloader)
 {
     return Utils::getRoot($autoloader);
 }