diff --git a/book/part12.rst b/book/part12.rst index d1a6fa2ca6d..5442570909f 100644 --- a/book/part12.rst +++ b/book/part12.rst @@ -12,12 +12,11 @@ some code from the front controller to it:: namespace Simplex; - use Symfony\Component\HttpKernel\HttpKernel; use Symfony\Component\Routing; use Symfony\Component\HttpKernel; use Symfony\Component\EventDispatcher\EventDispatcher; - class Framework extends HttpKernel + class Framework extends HttpKernel\HttpKernel { public function __construct($routes) { @@ -182,6 +181,20 @@ The front controller is now only about wiring everything together:: $response->send(); +As all the objects are now created in the dependency injection container, the framework code should be the previous simple version:: + +