zawiszaty /
symfony-prooph-example
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | require __DIR__.'./../vendor/autoload.php'; |
||
| 6 | |||
| 7 | use App\Kernel; |
||
| 8 | use Prooph\EventStore\EventStore; |
||
|
0 ignored issues
–
show
|
|||
| 9 | use Prooph\EventStore\Stream; |
||
|
0 ignored issues
–
show
The type
Prooph\EventStore\Stream 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...
|
|||
| 10 | use Prooph\EventStore\StreamName; |
||
|
0 ignored issues
–
show
The type
Prooph\EventStore\StreamName 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...
|
|||
| 11 | |||
| 12 | $kernel = new Kernel('test', true); |
||
| 13 | $kernel->boot(); |
||
| 14 | $container = $kernel->getContainer(); |
||
| 15 | /** @var EventStore $eventStore */ |
||
| 16 | $eventStore = $container->get('prooph_event_store.books_store'); |
||
| 17 | $eventStore->create(new Stream(new StreamName('event_stream'), new \ArrayIterator([]))); |
||
| 18 |
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