Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame^] | 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 | |
| 12 | namespace Twig\RuntimeLoader; |
| 13 | |
| 14 | /** |
| 15 | * Creates runtime implementations for Twig elements (filters/functions/tests). |
| 16 | * |
| 17 | * @author Fabien Potencier <fabien@symfony.com> |
| 18 | */ |
| 19 | interface RuntimeLoaderInterface |
| 20 | { |
| 21 | /** |
| 22 | * Creates the runtime implementation of a Twig element (filter/function/test). |
| 23 | * |
| 24 | * @return object|null The runtime instance or null if the loader does not know how to create the runtime for this class |
| 25 | */ |
| 26 | public function load(string $class); |
| 27 | } |