Spork Code Libraries

UpdateListener

Event listener to update CSS files

Extends
\Zend\EventManager\AbstractListenerAggregate

Properties

$builds

$builds : 

Type

Methods

__construct()

__construct(array  $options = array()) 

Parameters

array $options

attach()

attach(\Zend\EventManager\EventManagerInterface  $events) 

Parameters

\Zend\EventManager\EventManagerInterface $events

updateCSS()

updateCSS(\Zend\Mvc\MvcEvent  $event) 

Parameters

\Zend\Mvc\MvcEvent $event

addBuild()

addBuild(  $build) 

Parameters

$build

getBuilds()

getBuilds() 

setBuilds()

setBuilds(array  $builds) 

Parameters

array $builds

getCompiler()

getCompiler() 

setCompiler()

setCompiler(  $compiler) 

Parameters

$compiler

configure()

configure(  $options) 

Parameters

$options

getFileKey()

getFileKey(  $basePath, \SplFileInfo  $file) 

Get relative key for a file

Parameters

$basePath
\SplFileInfo $file

isOutOfDate()

isOutOfDate(string  $source, string  $destination, array  $includes = null) : boolean

Test is destination file or folder is out of date from the source.

Parameters

string $source
string $destination
array $includes

Returns

boolean

scanDirectory()

scanDirectory(string  $path, string|array  $extensions) 

Scan a directory and return a list of files with matching extenstions

Parameters

string $path

Directory path to scan

string|array $extensions

Match files with these extensions