Assetic\Factory\AssetFactory
The asset factory creates asset objects.
- Author: Kris Wallsmith <kris.wallsmith@gmail.com>
Synopsis
class AssetFactory
{
- // members
- private $root;
- private $debug;
- private $output;
- private $workers;
- private $am;
- private $fm;
- // methods
- public void __construct()
- public void setDebug()
- public Boolean isDebug()
- public void setDefaultOutput()
- public void addWorker()
- public AssetManager|null getAssetManager()
- public void setAssetManager()
- public FilterManager|null getFilterManager()
- public void setFilterManager()
- public AssetCollection createAsset()
- public void generateAssetName()
- protected AssetInterface parseInput()
- protected void createAssetCollection()
- protected void createAssetReference()
- protected void createHttpAsset()
- protected void createGlobAsset()
- protected void createFileAsset()
- protected void getFilter()
- private AssetCollectionInterface applyWorkers()
- private static void isAbsolutePath()
- private static string|null findRootDir()
Hierarchy
Members
private
- $am
- $debug
- $fm
- $output
- $root
- $workers
Methods
private
- applyWorkers() — Filters an asset collection through the factory workers.
- findRootDir() — Loops through the root directories and returns the first match.
- isAbsolutePath()
protected
- createAssetCollection()
- createAssetReference()
- createFileAsset()
- createGlobAsset()
- createHttpAsset()
- getFilter()
- parseInput() — Parses an input string string into an asset.
public
- __construct() — Constructor.
- addWorker() — Adds a factory worker.
- createAsset() — Creates a new asset.
- generateAssetName()
- getAssetManager() — Returns the current asset manager.
- getFilterManager() — Returns the current filter manager.
- isDebug() — Checks if the factory is in debug mode.
- setAssetManager() — Sets the asset manager to use when creating asset references.
- setDebug() — Sets debug mode for the current factory.
- setDefaultOutput() — Sets the default output string.
- setFilterManager() — Sets the filter manager to use when adding filters.