From 992033f78be3b84a5b4971b5873e5a90e5791fe7 Mon Sep 17 00:00:00 2001 From: Titouan Galopin Date: Wed, 9 Jul 2014 10:08:18 +0200 Subject: [PATCH] Remove "Controllers extends ContainerAware" best practice --- cookbook/bundles/best_practices.rst | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/cookbook/bundles/best_practices.rst b/cookbook/bundles/best_practices.rst index 3f98b4f591d..c4faa184aca 100644 --- a/cookbook/bundles/best_practices.rst +++ b/cookbook/bundles/best_practices.rst @@ -194,23 +194,6 @@ Extensive documentation should also be provided in the the ``Resources/doc/`` directory; the ``Resources/doc/index.rst`` file is the only mandatory file and must be the entry point for the documentation. -Controllers ------------ - -As a best practice, controllers in a bundle that's meant to be distributed -to others must not extend the -:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` base class. -They can implement -:class:`Symfony\\Component\\DependencyInjection\\ContainerAwareInterface` or -extend :class:`Symfony\\Component\\DependencyInjection\\ContainerAware` -instead. - -.. note:: - - If you have a look at - :class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` methods, - you will see that they are only nice shortcuts to ease the learning curve. - Routing -------