1 | <?php |
||
2 | |||
3 | namespace ByTIC\Assets\View; |
||
4 | |||
5 | use Nip\View\Extensions\AbstractExtension; |
||
6 | use Nip\View\View; |
||
7 | use Nip\View\ViewInterface; |
||
8 | |||
9 | /** |
||
10 | * Class AssetsExtension |
||
11 | * @package ByTIC\Assets\View |
||
12 | */ |
||
13 | class AssetsExtension extends AbstractExtension |
||
14 | { |
||
15 | /** |
||
16 | * @param ViewInterface|MethodsOverloadingTrait|HasMethodsTrait|View $view |
||
0 ignored issues
–
show
The type
ByTIC\Assets\View\HasMethodsTrait was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
17 | * @return void |
||
18 | */ |
||
19 | public function register(ViewInterface $view) |
||
20 | { |
||
21 | $view->getCallPipelineBuilder()->add(new HelpersPipelineStage()); |
||
0 ignored issues
–
show
The type
ByTIC\Assets\View\HelpersPipelineStage was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
22 | HelpersCollection::getInstance()->setEngine($view); |
||
0 ignored issues
–
show
The type
ByTIC\Assets\View\HelpersCollection was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
23 | |||
24 | $view->addMethod('getHelper', function ($name) { |
||
25 | return HelpersCollection::getInstance()->getHelper($name); |
||
26 | }); |
||
27 | |||
28 | $view->addMethod('hasHelper', function ($name) { |
||
29 | return HelpersCollection::getInstance()->hasHelper($name); |
||
30 | }); |
||
31 | } |
||
32 | } |
||
33 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths