ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Loads asset formulae from Twig templates. More...
Public Member Functions | |
__construct (\Twig_Environment $twig, LoggerInterface $logger=null) | |
load (ResourceInterface $resource) | |
Loads formulae from a resource. More... | |
Private Member Functions | |
loadNode (\Twig_Node $node) | |
Loads assets from the supplied node. More... | |
Private Attributes | |
$twig | |
$logger | |
Loads asset formulae from Twig templates.
Definition at line 23 of file TwigFormulaLoader.php.
Assetic\Extension\Twig\TwigFormulaLoader::__construct | ( | \Twig_Environment | $twig, |
LoggerInterface | $logger = null |
||
) |
Definition at line 28 of file TwigFormulaLoader.php.
References Assetic\Extension\Twig\TwigFormulaLoader\$logger, and Assetic\Extension\Twig\TwigFormulaLoader\$twig.
Assetic\Extension\Twig\TwigFormulaLoader::load | ( | ResourceInterface | $resource | ) |
Loads formulae from a resource.
Formulae should be loaded the same regardless of the current debug mode. Debug considerations should happen downstream.
ResourceInterface | $resource | A resource |
Implements Assetic\Factory\Loader\FormulaLoaderInterface.
Definition at line 34 of file TwigFormulaLoader.php.
References array, Assetic\Factory\Resource\ResourceInterface\getContent(), Assetic\Extension\Twig\TwigFormulaLoader\loadNode(), and string.
|
private |
Loads assets from the supplied node.
\Twig_Node | $node |
Definition at line 57 of file TwigFormulaLoader.php.
References $options, and array.
Referenced by Assetic\Extension\Twig\TwigFormulaLoader\load().
|
private |
Definition at line 26 of file TwigFormulaLoader.php.
Referenced by Assetic\Extension\Twig\TwigFormulaLoader\__construct().
|
private |
Definition at line 25 of file TwigFormulaLoader.php.
Referenced by Assetic\Extension\Twig\TwigFormulaLoader\__construct().