Skip to content

Commit

Permalink
Merge branch '2.3' into 2.4
Browse files Browse the repository at this point in the history
* 2.3:
  Remove "Controllers extends ContainerAware" best practice
  Fixed bad indenting (the list was treated as a blockquote)
  • Loading branch information
weaverryan committed Jul 25, 2014
2 parents 7ea87e6 + 579a873 commit 1eec58b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 25 deletions.
17 changes: 0 additions & 17 deletions cookbook/bundles/best_practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------

Expand Down
16 changes: 8 additions & 8 deletions cookbook/email/cloud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,17 @@ And that's it, you're ready to start sending emails through the cloud!

If you intend to use Amazon SES, please note the following:

* You have to sign up to `Amazon Web Services (AWS)`_;
* You have to sign up to `Amazon Web Services (AWS)`_;

* Every sender address used in the ``From`` or ``Return-Path`` (bounce
address) header needs to be confirmed by the owner. You can also
confirm an entire domain;
* Every sender address used in the ``From`` or ``Return-Path`` (bounce
address) header needs to be confirmed by the owner. You can also
confirm an entire domain;

* Initially you are in a restricted sandbox mode. You need to request
production access before being allowed to send to arbitrary
recipients;
* Initially you are in a restricted sandbox mode. You need to request
production access before being allowed to send to arbitrary
recipients;

* SES may be subject to a charge.
* SES may be subject to a charge.

.. _`Amazon's Simple Email Service (SES)`: http://aws.amazon.com/ses
.. _`SES console`: https://console.aws.amazon.com/ses
Expand Down

0 comments on commit 1eec58b

Please sign in to comment.