PHP Class hiqdev\assetpackagist\components\Storage

Inheritance: extends yii\base\Component, implements hiqdev\assetpackagist\components\StorageInterface
Exibir arquivo Open project: hiqdev/asset-packagist

Protected Properties

Property Type Description
$_locker
$_path

Public Methods

Method Description
getNextId ( )
init ( )
listPackages ( )
readJson ( $path )
readPackage ( AssetPackage $package )
writePackage ( AssetPackage $package )

Protected Methods

Method Description
buildHashedPath ( $name, $hash = 'latest' )
buildPath ( )
getLastIdPath ( )
getLocker ( )
mkdir ( $dir )
readLastId ( )
readPackagesJson ( )
readProvider ( $path )
writeLastId ( $value )
writePackagesJson ( $hash )
writeProviderLatest ( $name, $hash )

Method Details

buildHashedPath() protected method

protected buildHashedPath ( $name, $hash = 'latest' )

buildPath() protected method

protected buildPath ( )

getLastIdPath() protected method

protected getLastIdPath ( )

getLocker() protected method

protected getLocker ( )

getNextId() public method

public getNextId ( )

init() public method

public init ( )

listPackages() public method

public listPackages ( )

mkdir() protected method

protected mkdir ( $dir )

readJson() public method

public readJson ( $path )

readLastId() protected method

protected readLastId ( )

readPackage() public method

public readPackage ( AssetPackage $package )
$package hiqdev\assetpackagist\models\AssetPackage

readPackagesJson() protected method

protected readPackagesJson ( )

readProvider() protected method

protected readProvider ( $path )

writeLastId() protected method

protected writeLastId ( $value )

writePackage() public method

public writePackage ( AssetPackage $package )
$package hiqdev\assetpackagist\models\AssetPackage

writePackagesJson() protected method

protected writePackagesJson ( $hash )

writeProviderLatest() protected method

protected writeProviderLatest ( $name, $hash )

Property Details

$_locker protected_oe property

protected $_locker

$_path protected_oe property

protected $_path