From 939914d973e204f0f36de5648d5e9cdc70f9e978 Mon Sep 17 00:00:00 2001 From: Steven Orr Date: Sat, 12 Dec 2015 23:37:09 -0800 Subject: [PATCH] Replace 'FileMenuReader' with correct reader. Author intended on sharing 'ArrayMenuReader' not unknown 'FileMenuReader' with injector. --- 11-page-menu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/11-page-menu.md b/11-page-menu.md index befdc27..3e793e3 100644 --- a/11-page-menu.md +++ b/11-page-menu.md @@ -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.