PHP Class AssetCompress\Shell\AssetCompressShell

Assists in clearing and creating the build files this plugin makes.
Inheritance: extends Cake\Console\Shell
Datei anzeigen Open project: markstory/asset_compress

Public Properties

Property Type Description
$tasks array Tasks used by this shell.

Protected Properties

Property Type Description
$config MiniAsset\AssetConfig Config instance
$factory AssetCompress\Factory Factory instance.

Public Methods

Method Description
build ( ) : void Builds all the files defined in the build file.
clear ( ) : void Clears the build directories for both CSS and JS
clearBuildTs ( ) : void Clears the build timestamp. Try to clear it out even if they do not have ts file enabled in the INI.
getOptionParser ( ) : Cake\Console\ConsoleOptionParser get the option parser.
setConfig ( AssetConfig $config ) : void Set the config object.
startup ( ) : void Create the configuration object used in other classes.

Protected Methods

Method Description
_clearBuilds ( ) : void clear the builds for a specific extension.
_clearPath ( string $path, array $themes, array $targets ) : void Clear a path of build targets.

Method Details

_clearBuilds() protected method

clear the builds for a specific extension.
protected _clearBuilds ( ) : void
return void

_clearPath() protected method

Clear a path of build targets.
protected _clearPath ( string $path, array $themes, array $targets ) : void
$path string The root path to clear.
$themes array The themes to clear.
$targets array The build targets to clear.
return void

build() public method

Builds all the files defined in the build file.
public build ( ) : void
return void

clear() public method

Clears the build directories for both CSS and JS
public clear ( ) : void
return void

clearBuildTs() public method

Build timestamp file is only created when build() is run from this shell
public clearBuildTs ( ) : void
return void

getOptionParser() public method

get the option parser.
public getOptionParser ( ) : Cake\Console\ConsoleOptionParser
return Cake\Console\ConsoleOptionParser

setConfig() public method

Set the config object.
public setConfig ( AssetConfig $config ) : void
$config MiniAsset\AssetConfig The config instance.
return void

startup() public method

Create the configuration object used in other classes.
public startup ( ) : void
return void

Property Details

$config protected_oe property

Config instance
protected AssetConfig,MiniAsset $config
return MiniAsset\AssetConfig

$factory protected_oe property

Factory instance.
protected Factory,AssetCompress $factory
return AssetCompress\Factory

$tasks public_oe property

Tasks used by this shell.
public array $tasks
return array