| 1 | <?php |
||
| 9 | class AssetExtension extends AbstractExtension |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Request |
||
| 13 | */ |
||
| 14 | protected $request; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $basePath; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Constructor. |
||
| 23 | * |
||
| 24 | * @param Request $request |
||
| 25 | * @param string $basePath |
||
| 26 | */ |
||
| 27 | public function __construct(Request $request, $basePath = null) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function getFunctions() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Gets the path to the asset. |
||
| 45 | * |
||
| 46 | * @param string $path |
||
| 47 | * |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function asset($path) |
||
| 58 | } |
||
| 59 |