PHP Класс Bolt\Configuration\Environment

Автор: Gawain Lynch ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$actions Pimpl\Pimple
$appPath string
$boltVersion string
$cache Bolt\Cache
$filesystem Symfony\Component\Filesystem\Filesystem
$rootPath string
$viewPath string

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
getVersionFileName ( )

Описание методов

__construct() публичный Метод

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() защищенный Метод

Check if the cache version matches Bolt's current version
protected checkCacheVersion ( ) : boolean
Результат boolean TRUE - versions match FALSE - versions don't match

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.
public checkVersion ( )

hasVersionChange() публичный Метод

Has a Bolt version change been detected.
public hasVersionChange ( ) : boolean
Результат boolean

syncView() публичный Метод

Perform a synchronisation of files in specific app/view/ subdirectories.
public syncView ( ) : array | null
Результат array | null

syncViewDirectory() защищенный Метод

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

updateAutoloader() защищенный Метод

Update the extension autoloader.
protected updateAutoloader ( )

updateCacheVersion() защищенный Метод

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

Описание свойств

$actions защищенное свойство

protected Pimple,Pimpl $actions
Результат Pimpl\Pimple

$appPath защищенное свойство

protected string $appPath
Результат string

$boltVersion защищенное свойство

protected string $boltVersion
Результат string

$cache защищенное свойство

protected Cache,Bolt $cache
Результат Bolt\Cache

$filesystem защищенное свойство

protected Filesystem,Symfony\Component\Filesystem $filesystem
Результат Symfony\Component\Filesystem\Filesystem

$rootPath защищенное свойство

protected string $rootPath
Результат string

$viewPath защищенное свойство

protected string $viewPath
Результат string