Skip to content

Commit d782c4b

Browse files
committed
Merge branch '2.3' into 2.7
Conflicts: book/routing.rst book/service_container.rst cookbook/form/unit_testing.rst
2 parents af28636 + 36277a6 commit d782c4b

13 files changed

+196
-189
lines changed

best_practices/creating-the-project.rst

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ to create files and execute the following commands:
3535
c:\> cd projects/
3636
c:\projects\> php symfony new blog
3737
38+
.. note::
39+
40+
If the installer doesn't work for you or doesn't output anything, make sure
41+
that the `Phar extension`_ is installed and enabled on your computer.
42+
3843
This command creates a new directory called ``blog`` that contains a fresh new
3944
project based on the most recent stable Symfony version available. In addition,
4045
the installer checks if your system meets the technical requirements to execute
@@ -178,3 +183,4 @@ the Symfony directory structure.
178183
.. _`Composer download page`: https://getcomposer.org/download/
179184
.. _`public checksums repository`: https://github.com/sensiolabs/checksums
180185
.. _`these steps`: http://fabien.potencier.org/signing-project-releases.html
186+
.. _`Phar extension`: http://php.net/manual/en/intro.phar.php

book/controller.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ Controllers are also called *actions*.
116116

117117
This controller is pretty straightforward:
118118

119-
* *line 4*: Symfony takes advantage of PHP's namespace functionality to
120-
namespace the entire controller class. The ``use`` keyword imports the
119+
* *line 2*: Symfony takes advantage of PHP's namespace functionality to
120+
namespace the entire controller class.
121+
122+
* *line 4*: Symfony again takes advantage of PHP's namespace functionality: the ``use`` keyword imports the
121123
``Response`` class, which the controller must return.
122124

123125
* *line 6*: The class name is the concatenation of a name for the controller

book/from_flat_php_to_symfony2.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ them for you. Here's the same sample application, now built in Symfony::
554554
{
555555
$posts = $this->get('doctrine')
556556
->getManager()
557-
->createQuery('SELECT p FROM AcmeBlogBundle:Post p')
557+
->createQuery('SELECT p FROM AppBundle:Post p')
558558
->execute();
559559

560560
return $this->render('Blog/list.html.php', array('posts' => $posts));

book/includes/_service_container_my_mailer.rst.inc

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
# app/config/services.yml
66
services:
7-
my_mailer:
8-
class: Acme\HelloBundle\Mailer
7+
app.mailer:
8+
class: AppBundle\Mailer
99
arguments: [sendmail]
1010

1111
.. code-block:: xml
@@ -15,10 +15,10 @@
1515
<container xmlns="http://symfony.com/schema/dic/services"
1616
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1717
xsi:schemaLocation="http://symfony.com/schema/dic/services
18-
http://symfony.com/schema/dic/services/services-1.0.xsd"
19-
>
18+
http://symfony.com/schema/dic/services/services-1.0.xsd">
19+
2020
<services>
21-
<service id="my_mailer" class="Acme\HelloBundle\Mailer">
21+
<service id="app.mailer" class="AppBundle\Mailer">
2222
<argument>sendmail</argument>
2323
</service>
2424
</services>
@@ -29,7 +29,7 @@
2929
// app/config/services.php
3030
use Symfony\Component\DependencyInjection\Definition;
3131

32-
$container->setDefinition('my_mailer', new Definition(
33-
'Acme\HelloBundle\Mailer',
32+
$container->setDefinition('app.mailer', new Definition(
33+
'AppBundle\Mailer',
3434
array('sendmail')
3535
));

book/installation.rst

+6
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ to meet those requirements.
8181
distributing them. If you want to verify the integrity of any Symfony
8282
version, follow the steps `explained in this post`_.
8383

84+
.. note::
85+
86+
If the installer doesn't work for you or doesn't output anything, make sure
87+
that the `Phar extension`_ is installed and enabled on your computer.
88+
8489
Basing your Project on a Specific Symfony Version
8590
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8691

@@ -417,3 +422,4 @@ a wide variety of articles about solving specific problems with Symfony.
417422
.. _`Symfony REST Edition`: https://github.com/gimler/symfony-rest-edition
418423
.. _`FOSRestBundle`: https://github.com/FriendsOfSymfony/FOSRestBundle
419424
.. _`Git`: http://git-scm.com/
425+
.. _`Phar extension`: http://php.net/manual/en/intro.phar.php

book/page_creation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ at the end:
191191
192192
.. code-block:: xml
193193
194-
<!-- src/Acme/DemoBundle/Resources/config/routing.xml -->
194+
<!-- app/config/routing.xml -->
195195
<?xml version="1.0" encoding="UTF-8" ?>
196196
<routes xmlns="http://symfony.com/schema/routing"
197197
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -205,7 +205,7 @@ at the end:
205205
206206
.. code-block:: php
207207
208-
// src/Acme/DemoBundle/Resources/config/routing.php
208+
// app/config/routing.php
209209
use Symfony\Component\Routing\RouteCollection;
210210
use Symfony\Component\Routing\Route;
211211

book/routing.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1186,9 +1186,9 @@ Notice that Symfony adds the string ``Controller`` to the class name (``Blog``
11861186
=> ``BlogController``) and ``Action`` to the method name (``show`` => ``showAction``).
11871187

11881188
You could also refer to this controller using its fully-qualified class name
1189-
and method: ``AppBundle\Controller\BlogController::showAction``.
1190-
But if you follow some simple conventions, the logical name is more concise
1191-
and allows more flexibility.
1189+
and method: ``AppBundle\Controller\BlogController::showAction``. But if you
1190+
follow some simple conventions, the logical name is more concise and allows
1191+
more flexibility.
11921192

11931193
.. note::
11941194

0 commit comments

Comments
 (0)