PHP Класс AssetManager\Controller\ConsoleController

Наследование: extends Zend\Mvc\Controller\AbstractActionController
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$appConfig associative array represents app config
$assetManager asset manager object
$console console object

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

Метод Описание
__construct ( Zend\Console\Adapter\AdapterInterface $console, AssetManager $assetManager, array $appConfig )
dispatch ( Zend\Stdlib\RequestInterface $request, Zend\Stdlib\ResponseInterface $response = null ) : mixed | Zend\Stdlib\ResponseInterface
warmupAction ( ) Dumps all assets to cache directories.

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

Метод Описание
output ( $line, boolean $verbose = true ) Outputs given $line if $verbose i truthy value.
purgeCache ( boolean $verbose = false ) : boolean Purges all directories defined as AssetManager cache dir.
recursiveRemove ( string $node, boolean $verbose = false ) Removes given node from filesystem (recursively).

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

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

public __construct ( Zend\Console\Adapter\AdapterInterface $console, AssetManager $assetManager, array $appConfig )
$console Zend\Console\Adapter\AdapterInterface
$assetManager AssetManager\Service\AssetManager
$appConfig array

dispatch() публичный метод

public dispatch ( Zend\Stdlib\RequestInterface $request, Zend\Stdlib\ResponseInterface $response = null ) : mixed | Zend\Stdlib\ResponseInterface
$request Zend\Stdlib\RequestInterface
$response Zend\Stdlib\ResponseInterface
Результат mixed | Zend\Stdlib\ResponseInterface

output() защищенный метод

Outputs given $line if $verbose i truthy value.
protected output ( $line, boolean $verbose = true )
$line
$verbose boolean verbose flag, default true

purgeCache() защищенный метод

Purges all directories defined as AssetManager cache dir.
protected purgeCache ( boolean $verbose = false ) : boolean
$verbose boolean verbose flag, default false
Результат boolean false if caching is not set, otherwise true

recursiveRemove() защищенный метод

Removes given node from filesystem (recursively).
protected recursiveRemove ( string $node, boolean $verbose = false )
$node string - uri of node that should be removed from filesystem
$verbose boolean verbose flag, default false

warmupAction() публичный метод

Dumps all assets to cache directories.
public warmupAction ( )

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

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

associative array represents app config
protected $appConfig

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

asset manager object
protected $assetManager

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

console object
protected $console