Skip to content

Commit

Permalink
added a new best practice for bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jul 8, 2010
1 parent 85d99c7 commit abc27e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion guides/en/Bundles/Best-Practices.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ class name is `Bundle\HelloBundle\Controller\HelloController`.
All classes and files must follow the Symfony2 coding [standards][1].

Some classes should be seen as facades and should be as short as possible,
like Commands, Helpers, and Controllers.
like Commands, Helpers, Listeners, and Controllers.

Classes that connects to the Event Dispatcher should have a name that ends
with `Listener`.

Vendors
-------
Expand Down

0 comments on commit abc27e0

Please sign in to comment.