|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Loads asset formulae from Twig templates. More...
Inheritance diagram for Assetic\Extension\Twig\TwigFormulaLoader:
Collaboration diagram for Assetic\Extension\Twig\TwigFormulaLoader:Public Member Functions | |
| __construct (\Twig_Environment $twig, LoggerInterface $logger=null) | |
| load (ResourceInterface $resource) | |
| Loads formulae from a resource. More... | |
| 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 Assetic\Factory\Resource\ResourceInterface\getContent(), Assetic\Extension\Twig\TwigFormulaLoader\loadNode(), and sprintf.
Here is the call graph for this function:
|
private |
Loads assets from the supplied node.
| \Twig_Node | $node |
Definition at line 57 of file TwigFormulaLoader.php.
References $options, and Assetic\Extension\Twig\TwigFormulaLoader\loadNode().
Referenced by Assetic\Extension\Twig\TwigFormulaLoader\load(), and Assetic\Extension\Twig\TwigFormulaLoader\loadNode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().