PHP Class Bolt\Asset\File\Queue

Author: Gawain Lynch ([email protected])
Author: Bob den Otter ([email protected])
Inheritance: implements Bolt\Asset\QueueInterface, use trait Bolt\Asset\AssetSortTrait
ファイルを表示 Open project: bolt/bolt

Protected Properties

Property Type Description
$injector Bolt\Asset\Injector
$packages Symfony\Component\Asset\Packages

Public Methods

Method Description
__construct ( Bolt\Asset\Injector $injector, Symfony\Component\Asset\Packages $packages ) Constructor.
add ( Bolt\Asset\File\FileAssetInterface $asset ) Add a file asset to the queue.
clear ( )
getQueue ( )
process ( Request $request, Response $response )

Protected Methods

Method Description
processAsset ( Bolt\Asset\File\FileAssetInterface $asset, Request $request, Response $response ) Process a single asset.

Method Details

__construct() public method

Constructor.
public __construct ( Bolt\Asset\Injector $injector, Symfony\Component\Asset\Packages $packages )
$injector Bolt\Asset\Injector
$packages Symfony\Component\Asset\Packages

add() public method

Add a file asset to the queue.
public add ( Bolt\Asset\File\FileAssetInterface $asset )
$asset Bolt\Asset\File\FileAssetInterface

clear() public method

public clear ( )

getQueue() public method

public getQueue ( )

process() public method

Uses sorting by priority.
public process ( Request $request, Response $response )
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

processAsset() protected method

Process a single asset.
protected processAsset ( Bolt\Asset\File\FileAssetInterface $asset, Request $request, Response $response )
$asset Bolt\Asset\File\FileAssetInterface
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

Property Details

$injector protected_oe property

protected Injector,Bolt\Asset $injector
return Bolt\Asset\Injector

$packages protected_oe property

protected Packages,Symfony\Component\Asset $packages
return Symfony\Component\Asset\Packages