Documentation

SprocketsFilter extends BaseProcessFilter
in package
implements DependencyExtractorInterface

Runs assets through Sprockets.

Requires Sprockets 1.0.x.

Tags
link
http://getsprockets.org/
link
http://github.com/sstephenson/sprockets/tree/1.0.x
author

Kris Wallsmith kris.wallsmith@gmail.com

Interfaces, Classes and Traits

DependencyExtractorInterface
A filter that knows how to extract dependencies.

Table of Contents

$assetRoot  : mixed
$includeDirs  : mixed
$rubyBin  : mixed
$sprocketsLib  : mixed
$timeout  : mixed
__construct()  : mixed
Constructor.
addIncludeDir()  : mixed
filterDump()  : mixed
filterLoad()  : mixed
Hack around a bit, get the job done.
getChildren()  : array<string|int, AssetInterface>
Returns child assets.
setAssetRoot()  : mixed
setTimeout()  : mixed
Set the process timeout.
createProcessBuilder()  : ProcessBuilder
Creates a new process builder.
mergeEnv()  : mixed
getHack()  : mixed

Properties

Methods

__construct()

Constructor.

public __construct([string $sprocketsLib = null ][, string $rubyBin = '/usr/bin/ruby' ]) : mixed
Parameters
$sprocketsLib : string = null

Path to the Sprockets lib/ directory

$rubyBin : string = '/usr/bin/ruby'

Path to the ruby binary

Return values
mixed

addIncludeDir()

public addIncludeDir(mixed $directory) : mixed
Parameters
$directory : mixed
Return values
mixed

getChildren()

Returns child assets.

public getChildren(AssetFactory $factory, mixed $content[, mixed $loadPath = null ]) : array<string|int, AssetInterface>
Parameters
$factory : AssetFactory

The asset factory

$content : mixed

The asset content

$loadPath : mixed = null

An optional load path

Return values
array<string|int, AssetInterface>

Child assets

setAssetRoot()

public setAssetRoot(mixed $assetRoot) : mixed
Parameters
$assetRoot : mixed
Return values
mixed

setTimeout()

Set the process timeout.

public setTimeout(int $timeout) : mixed
Parameters
$timeout : int

The timeout for the process

Return values
mixed

createProcessBuilder()

Creates a new process builder.

protected createProcessBuilder([array<string|int, mixed> $arguments = array() ]) : ProcessBuilder
Parameters
$arguments : array<string|int, mixed> = array()

An optional array of arguments

Return values
ProcessBuilder

A new process builder

Search results