1 | <?php |
||
22 | class ModifiableLoader extends Component implements LoaderInterface |
||
23 | { |
||
24 | use BenchmarkTrait; |
||
25 | |||
26 | /** |
||
27 | * Loaded to be used for file resolution. |
||
28 | * |
||
29 | * @var LoaderInterface |
||
30 | */ |
||
31 | private $parent = null; |
||
32 | |||
33 | /** |
||
34 | * Required in order to give processors some context. |
||
35 | * |
||
36 | * @var EnvironmentInterface |
||
37 | */ |
||
38 | private $environment = null; |
||
39 | |||
40 | /** |
||
41 | * @var \Spiral\Views\ProcessorInterface[] |
||
42 | */ |
||
43 | protected $modifiers = []; |
||
44 | |||
45 | /** |
||
46 | * ProcessableLoader constructor. |
||
47 | * |
||
48 | * @param EnvironmentInterface $environment |
||
49 | * @param LoaderInterface $loader |
||
50 | * @param array $modifiers |
||
51 | */ |
||
52 | public function __construct( |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function getSource(string $path): ViewSource |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function exists(string $path): bool |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function getNamespaces(): array |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function withExtension(string $extension = null): LoaderInterface |
||
109 | } |