Airship\Engine\Continuum\Installers\InstallFile::getPath PHP Method

getPath() public method

Get the name of the file
public getPath ( ) : string
return string
    public function getPath() : string
    {
        return $this->path;
    }

Usage Example

Esempio n. 1
0
 /**
  * Get the metadata stored in the PHP archive.
  *
  * @param InstallFile $fileInfo
  * @return array
  */
 protected function getMetadata(InstallFile $fileInfo) : array
 {
     $alias = Base64UrlSafe::encode(\random_bytes(33)) . '.phar';
     $phar = new \Phar($fileInfo->getPath(), \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::KEY_AS_FILENAME);
     $phar->setAlias($alias);
     $metadata = $phar->getMetadata();
     unset($phar);
     return $metadata;
 }
All Usage Examples Of Airship\Engine\Continuum\Installers\InstallFile::getPath