Skip to content

Commit

Permalink
Merge branch '2.7' into 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Dec 17, 2015
2 parents 168072b + af28636 commit 5275cfb
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 12 deletions.
8 changes: 4 additions & 4 deletions best_practices/creating-the-project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ to create files and execute the following commands:
# Windows
c:\> cd projects/
c:\projects\> php symfony.phar new blog
c:\projects\> php symfony new blog
This command creates a new directory called ``blog`` that contains a fresh new
project based on the most recent stable Symfony version available. In addition,
Expand Down Expand Up @@ -110,10 +110,10 @@ Symfony documentation uses the AppBundle name.
There is no need to prefix the AppBundle with your own vendor (e.g.
AcmeAppBundle), because this application bundle is never going to be
shared.

.. note::
Another reason to create a new bundle is when you're overriding something

Another reason to create a new bundle is when you're overriding something
in a vendor's bundle (e.g. a controller). See :doc:`/cookbook/bundles/inheritance`.

All in all, this is the typical directory structure of a Symfony application
Expand Down
2 changes: 1 addition & 1 deletion book/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ and then redirects. The message key (``notice`` in this example) can be anything
you'll use this key to retrieve the message.

In the template of the next page (or even better, in your base layout template),
read any flash messages from the session::
read any flash messages from the session:

.. configuration-block::

Expand Down
4 changes: 2 additions & 2 deletions book/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Open your command console and execute the following commands:

.. code-block:: bash
$ sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony
$ sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
$ sudo chmod a+x /usr/local/bin/symfony
This will create a global ``symfony`` command in your system.
Expand All @@ -44,7 +44,7 @@ Open your command console and execute the following command:

.. code-block:: bash
c:\> php -r "readfile('http://symfony.com/installer');" > symfony
c:\> php -r "readfile('https://symfony.com/installer');" > symfony
Then, move the downloaded ``symfony`` file to your project's directory and
execute it as follows:
Expand Down
4 changes: 3 additions & 1 deletion book/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,9 @@ By default, the router will generate relative URLs (e.g. ``/blog``). From
a controller, simply pass ``true`` to the third argument of the ``generateUrl()``
method::

$this->generateUrl('blog_show', array('slug' => 'my-blog-post'), true);
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

$this->generateUrl('blog_show', array('slug' => 'my-blog-post'), UrlGeneratorInterface::ABSOLUTE_URL);
// http://www.example.com/blog/my-blog-post

From a template, simply use the ``url()`` function (which generates an absolute
Expand Down
3 changes: 1 addition & 2 deletions cookbook/controller/service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ controller:
in the :class:`Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface`.

:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::getDoctrine` (service: ``doctrine``)

*Simply inject doctrine instead of fetching it from the container*
*Simply inject doctrine instead of fetching it from the container.*

:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::getUser` (service: ``security.token_storage``)
.. code-block:: php
Expand Down
4 changes: 2 additions & 2 deletions cookbook/security/custom_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ options, the password may be encoded multiple times and encoded to base64.
before comparing it to your encoded password. If ``getSalt()`` returns
nothing, then the submitted password is simply encoded using the algorithm
you specify in ``security.yml``. If a salt *is* specified, then the following
value is created and *then* hashed via the algorithm:
value is created and *then* hashed via the algorithm::

``$password.'{'.$salt.'}';``
$password.'{'.$salt.'}'

If your external users have their passwords salted via a different method,
then you'll need to do a bit more work so that Symfony properly encodes
Expand Down
2 changes: 2 additions & 0 deletions cookbook/upgrade/_update_dep_errors.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Dependency Errors
If you get a dependency error, it may simply mean that you need to upgrade
other Symfony dependencies too. In that case, try the following command:

.. code-block:: bash

$ composer update symfony/symfony --with-dependencies

This updates ``symfony/symfony`` and *all* packages that it depends on, which will
Expand Down

0 comments on commit 5275cfb

Please sign in to comment.