Commit 03a70a3
committed
bug #581 Alias the slugger to fix fixtures loading (ogizanagi)
This PR was merged into the master branch.
Discussion
----------
Alias the slugger to fix fixtures loading
Fixes current exception:
```php
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
You have requested a non-existent service "slugger". Did you mean this: "logger"?
```
`ContainerAwareInterface` still is the way to access services inside fixture loaders. Maybe something could be done on the doctrine-fixtures-bundle side, but for now we need to have a public alias for this service.
We could also exclude the `DataFixtures\ORM` folder from PSR-4 loading, but it's probably not worth it and may "overwhelm" a little newcomers:
```diff
- exclude: '../../src/AppBundle/{Controller,Entity,Repository}'
+ exclude: '../../src/AppBundle/{Controller,Entity,Repository,DataFixtures/ORM}'
```
Commits
-------
334f770 Alias the slugger to fix fixtures loading1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments