| 1 | <?php |
||
| 21 | abstract class AbstractTwigExtension extends \Twig_Extension |
||
| 22 | { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Updates the engine with this extension |
||
| 26 | * |
||
| 27 | * @param TemplateEngineInterface|Twig $engine |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | 2 | public function update(TemplateEngineInterface $engine) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Check if this extension is applicable to provided engine object |
||
| 38 | * |
||
| 39 | * @param TemplateEngineInterface $engine |
||
| 40 | * |
||
| 41 | * @return bool True if this extension applies to provided engine object |
||
| 42 | * or false otherwise |
||
| 43 | */ |
||
| 44 | 2 | public function appliesTo(TemplateEngineInterface $engine) |
|
| 48 | } |
||
| 49 |