Replace 'FileMenuReader' with correct reader.

Author intended on sharing 'ArrayMenuReader' not unknown 'FileMenuReader' with injector.
This commit is contained in:
Steven Orr 2015-12-12 23:37:09 -08:00
parent ed960ddb7d
commit 939914d973

View file

@ -220,7 +220,7 @@ Add these lines above the `return` statement:
```php
$injector->alias('Example\Menu\MenuReader', 'Example\Menu\ArrayMenuReader');
$injector->share('Example\Menu\FileMenuReader');
$injector->share('Example\Menu\ArrayMenuReader');
```
Now you need to change out the hardcoded array in the `FrontendTwigRenderer` class to make it use our new `MenuReader` instead. Give it a try without looking at the solution below.