Skip to content

Commit

Permalink
Merge branch '2.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed May 10, 2015
2 parents c1cbb9a + 164ce27 commit de9b3d5
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 23 deletions.
2 changes: 1 addition & 1 deletion book/http_cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ This has two very reasonable consequences:

* You should *never* change the state of your application when responding
to a GET or HEAD request. Even if you don't use a gateway cache, the presence
of proxy caches mean that any GET or HEAD request may or may not actually
of proxy caches means that any GET or HEAD request may or may not actually
hit your server;

* Don't expect PUT, POST or DELETE methods to cache. These methods are meant
Expand Down
2 changes: 1 addition & 1 deletion book/service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ Core Symfony and Third-Party Bundle Services
Since Symfony and all third-party bundles configure and retrieve their services
via the container, you can easily access them or even use them in your own
services. To keep things simple, Symfony by default does not require that
controllers be defined as services. Furthermore, Symfony injects the entire
controllers must be defined as services. Furthermore, Symfony injects the entire
service container into your controller. For example, to handle the storage of
information on a user's session, Symfony provides a ``session`` service,
which you can access inside a standard controller as follows::
Expand Down
2 changes: 1 addition & 1 deletion components/security/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The default authentication manager is an instance of

use Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager;

// instances of Symfony\Component\Security\Core\Authentication\AuthenticationProviderInterface
// instances of Symfony\Component\Security\Core\Authentication\Provider\AuthenticationProviderInterface
$providers = array(...);

$authenticationManager = new AuthenticationProviderManager($providers);
Expand Down
7 changes: 3 additions & 4 deletions contributing/code/core_team.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,10 @@ Pull Request Merging Policy

A pull request **can be merged** if:

* Enough time was given for peer reviews (a few minutes for typos or minor
changes, at least 2 days for "regular" pull requests, and 4 days for pull
requests with "a significant impact");
* It is a minor change [1]_;

* It is a minor change [1]_, regardless of the number of votes;
* Enough time was given for peer reviews (at least 2 days for "regular"
pull requests, and 4 days for pull requests with "a significant impact");

* At least the component's **Merger** or two other Core members voted ``+1``
and no Core member voted ``-1``.
Expand Down
2 changes: 1 addition & 1 deletion cookbook/assetic/uglifyjs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Local Installation
~~~~~~~~~~~~~~~~~~

It's also possible to install UglifyJS inside your project only, which is useful
when your project requires an specific UglifyJS version. To do this, install it
when your project requires a specific UglifyJS version. To do this, install it
without the ``-g`` option and specify the path where to put the module:

.. code-block:: bash
Expand Down
5 changes: 1 addition & 4 deletions cookbook/configuration/using_parameters_in_dic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ Now, examine the results to see this closely:
In order to support this use case, the ``Configuration`` class has to
be injected with this parameter via the extension as follows::

namespace Acme\DemoBundle\DependencyInjection;
namespace AppBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

Expand Down Expand Up @@ -130,9 +129,7 @@ And set it in the constructor of ``Configuration`` via the ``Extension`` class::
namespace AppBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Config\FileLocator;

class AppExtension extends Extension
{
Expand Down
8 changes: 4 additions & 4 deletions cookbook/configuration/web_server_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The **minimum configuration** to get your application running under Apache is:
DocumentRoot /var/www/project/web
<Directory /var/www/project/web>
AllowOverride All
Order allow, deny
Order Allow,Deny
Allow from All
</Directory>
Expand Down Expand Up @@ -76,7 +76,7 @@ and increase web server performance:
DocumentRoot /var/www/project/web
<Directory /var/www/project/web>
AllowOverride None
Order allow, deny
Order Allow,Deny
Allow from All
<IfModule mod_rewrite.c>
Expand Down Expand Up @@ -110,7 +110,7 @@ and increase web server performance:
Using mod_php/PHP-CGI with Apache 2.4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In Apache 2.4, ``Order allow,deny`` has been replaced by ``Require all granted``.
In Apache 2.4, ``Order Allow,Deny`` has been replaced by ``Require all granted``.
Hence, you need to modify your ``Directory`` permission settings as follows:

.. code-block:: apache
Expand Down Expand Up @@ -223,7 +223,7 @@ should look something like this:
<Directory /var/www/project/web>
# enable the .htaccess rewrites
AllowOverride All
Order allow, deny
Order Allow,Deny
Allow from all
</Directory>
Expand Down
7 changes: 3 additions & 4 deletions cookbook/email/email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ an email is pretty straightforward::

public function indexAction($name)
{
$mailer = $this->get('mailer');
$message = $mailer->createMessage()
->setSubject('You have Completed Registration!')
$message = \Swift_Message::newInstance()
->setSubject('Hello Email')
->setFrom('send@example.com')
->setTo('recipient@example.com')
->setBody(
Expand All @@ -117,7 +116,7 @@ an email is pretty straightforward::
)
*/
;
$mailer->send($message);
$this->get('mailer')->send($message);

return $this->render(...);
}
Expand Down
6 changes: 3 additions & 3 deletions reference/constraints/_payload-option.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ payload

This option can be used to attach arbitrary domain-specific data to a constraint.
The configured payload is not used by the Validator component, but its processing
is completely up to.
is completely up to you.

For example, you may want to used
For example, you may want to use
:doc:`several error levels </cookbook/validation/severity>` to present failed
constraint differently in the front-end depending on the severity of the
constraints differently in the front-end depending on the severity of the
error.

0 comments on commit de9b3d5

Please sign in to comment.