| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* This file is part of Twig. |
| 5 |
* |
| 6 |
* (c) Fabien Potencier |
| 7 |
* |
| 8 |
* For the full copyright and license information, please view the LICENSE |
| 9 |
* file that was distributed with this source code. |
| 10 |
*/ |
| 11 |
namespace ElementorDeps\Twig\RuntimeLoader; |
| 12 |
|
| 13 |
/** |
| 14 |
* Creates runtime implementations for Twig elements (filters/functions/tests). |
| 15 |
* |
| 16 |
* @author Fabien Potencier <fabien@symfony.com> |
| 17 |
*/ |
| 18 |
interface RuntimeLoaderInterface |
| 19 |
{ |
| 20 |
/** |
| 21 |
* Creates the runtime implementation of a Twig element (filter/function/test). |
| 22 |
* |
| 23 |
* @return object|null The runtime instance or null if the loader does not know how to create the runtime for this class |
| 24 |
*/ |
| 25 |
public function load(string $class); |
| 26 |
} |
| 27 |
|