PHP 클래스 AssetCompress\Shell\AssetCompressShell

Assists in clearing and creating the build files this plugin makes.
상속: extends Cake\Console\Shell
파일 보기 프로젝트 열기: markstory/asset_compress

공개 프로퍼티들

프로퍼티 타입 설명
$tasks array Tasks used by this shell.

보호된 프로퍼티들

프로퍼티 타입 설명
$config MiniAsset\AssetConfig Config instance
$factory AssetCompress\Factory Factory instance.

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
_clearBuilds ( ) : void clear the builds for a specific extension.
_clearPath ( string $path, array $themes, array $targets ) : void Clear a path of build targets.

메소드 상세

_clearBuilds() 보호된 메소드

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

_clearPath() 보호된 메소드

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.
리턴 void

build() 공개 메소드

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

clear() 공개 메소드

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

clearBuildTs() 공개 메소드

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

getOptionParser() 공개 메소드

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

setConfig() 공개 메소드

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

startup() 공개 메소드

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

프로퍼티 상세

$config 보호되어 있는 프로퍼티

Config instance
protected AssetConfig,MiniAsset $config
리턴 MiniAsset\AssetConfig

$factory 보호되어 있는 프로퍼티

Factory instance.
protected Factory,AssetCompress $factory
리턴 AssetCompress\Factory

$tasks 공개적으로 프로퍼티

Tasks used by this shell.
public array $tasks
리턴 array