From 235631fd3fa17f7e96af20dc2b206e6e7d3106ca Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Mon, 19 Oct 2015 11:36:27 -0700 Subject: [PATCH] Put middleware DI info in routes.global.php - Per zendframework/zend-expressive-skeleton#9, this puts the DI definition information in the `routes.global.php` file, in order to keep routing/middleware information in one file. --- doc/book/quick-start-skeleton.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/book/quick-start-skeleton.md b/doc/book/quick-start-skeleton.md index a69f93ab..4441c104 100644 --- a/doc/book/quick-start-skeleton.md +++ b/doc/book/quick-start-skeleton.md @@ -217,7 +217,7 @@ class HelloActionFactory ``` With that in place, we'll now update our configuration. Open the file -`config/autoload/dependencies.global.php`; it should have a structure similar to +`config/autoload/routes.global.php`; it should have a structure similar to the following: ```php @@ -226,9 +226,9 @@ return [ 'invokables' => [ /* ... */ ], - 'factories' => [ - /* ... */ - ], + ], + 'routes' => [ + /* ... */ ], ]; ``` @@ -245,6 +245,9 @@ return [ App\Action\HelloAction::class => App\Action\HelloActionFactory::class, ], ], + 'routes' => [ + /* ... */ + ], ]; ```