1 | <?php |
||
2 | |||
3 | namespace InFw\TacticianAdapter; |
||
4 | |||
5 | use InFw\TacticianAdapter\Factory\CommandBusFactory; |
||
6 | use InFw\TacticianAdapter\Factory\HandlerLocatorFactory; |
||
7 | use InFw\TacticianAdapter\Factory\QueryBusFactory; |
||
8 | use League\Tactician\CommandBus; |
||
9 | use League\Tactician\Handler\CommandNameExtractor\ClassNameExtractor; |
||
10 | use League\Tactician\Handler\CommandNameExtractor\CommandNameExtractor; |
||
11 | use League\Tactician\Handler\Locator\HandlerLocator; |
||
12 | use League\Tactician\Handler\MethodNameInflector\InvokeInflector; |
||
13 | use League\Tactician\Handler\MethodNameInflector\MethodNameInflector; |
||
14 | use League\Tactician\Logger\Formatter\ClassPropertiesFormatter; |
||
0 ignored issues
–
show
|
|||
15 | use League\Tactician\Logger\Formatter\Formatter; |
||
0 ignored issues
–
show
The type
League\Tactician\Logger\Formatter\Formatter 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
Loading history...
|
|||
16 | use League\Tactician\Plugins\LockingMiddleware; |
||
17 | |||
18 | class ConfigProvider |
||
19 | { |
||
20 | public function __invoke(): array |
||
21 | { |
||
22 | return [ |
||
23 | 'command_bus' => $this->getBusConfig(), |
||
24 | 'query_bus' => $this->getQueryBusConfig(), |
||
25 | 'dependencies' => $this->getDependencies(), |
||
26 | ]; |
||
27 | } |
||
28 | |||
29 | protected function getBusConfig(): array |
||
30 | { |
||
31 | return [ |
||
32 | 'locator' => HandlerLocator::class, |
||
33 | 'inflector' => MethodNameInflector::class, |
||
34 | 'extractor' => CommandNameExtractor::class, |
||
35 | 'formatter' => Formatter::class, |
||
36 | 'middleware' => [ |
||
37 | LockingMiddleware::class => LockingMiddleware::class, |
||
38 | ], |
||
39 | 'handler_map' => [], |
||
40 | ]; |
||
41 | } |
||
42 | |||
43 | protected function getQueryBusConfig(): array |
||
44 | { |
||
45 | return [ |
||
46 | 'locator' => 'query_bus.handler_locator', |
||
47 | 'inflector' => MethodNameInflector::class, |
||
48 | 'extractor' => CommandNameExtractor::class, |
||
49 | 'formatter' => Formatter::class, |
||
50 | 'middleware' => [], |
||
51 | 'handler_map' => [], |
||
52 | ]; |
||
53 | } |
||
54 | |||
55 | protected function getDependencies(): array |
||
56 | { |
||
57 | return [ |
||
58 | 'invokables' => [ |
||
59 | Formatter::class => ClassPropertiesFormatter::class, |
||
60 | MethodNameInflector::class => InvokeInflector::class, |
||
61 | CommandNameExtractor::class => ClassNameExtractor::class, |
||
62 | LockingMiddleware::class => LockingMiddleware::class, |
||
63 | ], |
||
64 | 'factories' => [ |
||
65 | CommandBus::class => CommandBusFactory::class, |
||
66 | QueryBus::class => QueryBusFactory::class, |
||
67 | HandlerLocator::class => [HandlerLocatorFactory::class, 'command_bus'], |
||
68 | 'query_bus.handler_locator' => [HandlerLocatorFactory::class, 'query_bus'], |
||
69 | ], |
||
70 | ]; |
||
71 | } |
||
72 | } |
||
73 |
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