PHP Class Bolt\Configuration\Environment

Author: Gawain Lynch ([email protected])
Afficher le fichier Open project: bolt/bolt

Protected Properties

Свойство Type Description
$actions Pimpl\Pimple
$appPath string
$boltVersion string
$cache Bolt\Cache
$filesystem Symfony\Component\Filesystem\Filesystem
$rootPath string
$viewPath string

Méthodes publiques

Méthode Description
__construct ( string $appPath, string $viewPath, Cache $cache, Pimpl\Pimple $actions, string $boltVersion ) Constructor.
checkVersion ( ) Check Bolt's version against a cached key. If there is a change we flush the cache data and if required synchronise asset directories.
hasVersionChange ( ) : boolean Has a Bolt version change been detected.
syncView ( ) : array | null Perform a synchronisation of files in specific app/view/ subdirectories.

Méthodes protégées

Méthode Description
checkCacheVersion ( ) : boolean Check if the cache version matches Bolt's current version
syncViewDirectory ( string $dir ) Synchronise the files in an app/view/ subdirectory.
updateAutoloader ( ) Update the extension autoloader.
updateCacheVersion ( ) Write our version string out to given cache directory

Private Methods

Méthode Description
getVersionFileName ( )

Method Details

__construct() public méthode

Constructor.
public __construct ( string $appPath, string $viewPath, Cache $cache, Pimpl\Pimple $actions, string $boltVersion )
$appPath string
$viewPath string
$cache Bolt\Cache
$actions Pimpl\Pimple
$boltVersion string

checkCacheVersion() protected méthode

Check if the cache version matches Bolt's current version
protected checkCacheVersion ( ) : boolean
Résultat boolean TRUE - versions match FALSE - versions don't match

checkVersion() public méthode

Check Bolt's version against a cached key. If there is a change we flush the cache data and if required synchronise asset directories.
public checkVersion ( )

hasVersionChange() public méthode

Has a Bolt version change been detected.
public hasVersionChange ( ) : boolean
Résultat boolean

syncView() public méthode

Perform a synchronisation of files in specific app/view/ subdirectories.
public syncView ( ) : array | null
Résultat array | null

syncViewDirectory() protected méthode

Synchronise the files in an app/view/ subdirectory.
protected syncViewDirectory ( string $dir )
$dir string

updateAutoloader() protected méthode

Update the extension autoloader.
protected updateAutoloader ( )

updateCacheVersion() protected méthode

Write our version string out to given cache directory
protected updateCacheVersion ( )

Property Details

$actions protected_oe property

protected Pimple,Pimpl $actions
Résultat Pimpl\Pimple

$appPath protected_oe property

protected string $appPath
Résultat string

$boltVersion protected_oe property

protected string $boltVersion
Résultat string

$cache protected_oe property

protected Cache,Bolt $cache
Résultat Bolt\Cache

$filesystem protected_oe property

protected Filesystem,Symfony\Component\Filesystem $filesystem
Résultat Symfony\Component\Filesystem\Filesystem

$rootPath protected_oe property

protected string $rootPath
Résultat string

$viewPath protected_oe property

protected string $viewPath
Résultat string