You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 loading
0 commit comments