Exemplo n.º 1
0
 protected static function setBasePath($dirName = __DIR__)
 {
     if (!is_dir($dirName)) {
         throw new \InvalidArgumentException('invalid directory name: ' . $dirName);
     }
     self::$basePath = rtrim($dirName, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
 }