Skip to content

Commit af28636

Browse files
committed
Merge branch '2.3' into 2.7
Conflicts: reference/constraints/Callback.rst
2 parents 9de5e2c + a48cfc1 commit af28636

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

best_practices/creating-the-project.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ to create files and execute the following commands:
3333
3434
# Windows
3535
c:\> cd projects/
36-
c:\projects\> php symfony.phar new blog
36+
c:\projects\> php symfony new blog
3737
3838
This command creates a new directory called ``blog`` that contains a fresh new
3939
project based on the most recent stable Symfony version available. In addition,
@@ -110,10 +110,10 @@ Symfony documentation uses the AppBundle name.
110110
There is no need to prefix the AppBundle with your own vendor (e.g.
111111
AcmeAppBundle), because this application bundle is never going to be
112112
shared.
113-
113+
114114
.. note::
115-
116-
Another reason to create a new bundle is when you're overriding something
115+
116+
Another reason to create a new bundle is when you're overriding something
117117
in a vendor's bundle (e.g. a controller). See :doc:`/cookbook/bundles/inheritance`.
118118

119119
All in all, this is the typical directory structure of a Symfony application

book/controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ and then redirects. The message key (``notice`` in this example) can be anything
655655
you'll use this key to retrieve the message.
656656

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

660660
.. configuration-block::
661661

book/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Open your command console and execute the following commands:
3232

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

4545
.. code-block:: bash
4646
47-
c:\> php -r "readfile('http://symfony.com/installer');" > symfony
47+
c:\> php -r "readfile('https://symfony.com/installer');" > symfony
4848
4949
Then, move the downloaded ``symfony`` file to your project's directory and
5050
execute it as follows:

book/routing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,9 @@ By default, the router will generate relative URLs (e.g. ``/blog``). From
15551555
a controller, simply pass ``true`` to the third argument of the ``generateUrl()``
15561556
method::
15571557

1558-
$this->generateUrl('blog_show', array('slug' => 'my-blog-post'), true);
1558+
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1559+
1560+
$this->generateUrl('blog_show', array('slug' => 'my-blog-post'), UrlGeneratorInterface::ABSOLUTE_URL);
15591561
// http://www.example.com/blog/my-blog-post
15601562

15611563
From a template, in Twig, simply use the ``url()`` function (which generates an absolute URL)

cookbook/controller/service.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,7 @@ controller:
285285
in the :class:`Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface`.
286286

287287
:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::getDoctrine` (service: ``doctrine``)
288-
289-
*Simply inject doctrine instead of fetching it from the container*
288+
*Simply inject doctrine instead of fetching it from the container.*
290289

291290
:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::getUser` (service: ``security.token_storage``)
292291
.. code-block:: php

cookbook/security/custom_provider.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ options, the password may be encoded multiple times and encoded to base64.
324324
before comparing it to your encoded password. If ``getSalt()`` returns
325325
nothing, then the submitted password is simply encoded using the algorithm
326326
you specify in ``security.yml``. If a salt *is* specified, then the following
327-
value is created and *then* hashed via the algorithm:
327+
value is created and *then* hashed via the algorithm::
328328

329-
``$password.'{'.$salt.'}';``
329+
$password.'{'.$salt.'}'
330330

331331
If your external users have their passwords salted via a different method,
332332
then you'll need to do a bit more work so that Symfony properly encodes

cookbook/upgrade/_update_dep_errors.rst.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Dependency Errors
44
If you get a dependency error, it may simply mean that you need to upgrade
55
other Symfony dependencies too. In that case, try the following command:
66

7+
.. code-block:: bash
8+
79
$ composer update symfony/symfony --with-dependencies
810

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

0 commit comments

Comments
 (0)