Skip to content

Commit 0387f3b

Browse files
committed
Merge branch '2.8' into 3.3
* 2.8: Fixed a typo in templating/debug.rst Mention the SensioGeneratorBundle in the bundles article Use stricter syntax when testing Fix default value of strict_variables minor #9042 add missing twig dump construct (hellomedia, javiereguiluz)
2 parents 5e96cd9 + b8926e4 commit 0387f3b

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

bundles.rst

+8-10
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,14 @@ are used by your application (including the core Symfony bundles).
6464
Creating a Bundle
6565
-----------------
6666

67-
The Symfony Standard Edition comes with a handy task that creates a fully-functional
68-
bundle for you. Of course, creating a bundle by hand is pretty easy as well.
67+
`SensioGeneratorBundle`_ is an optional bundle that includes commands to create
68+
different elements of your application, such as bundles. If you create lots of
69+
bundles, consider using it. However, this section creates and enables a new
70+
bundle by hand to show how simple is to do it.
6971

70-
To show you how simple the bundle system is, create a new bundle called
71-
AcmeTestBundle and enable it.
72-
73-
.. tip::
74-
75-
The ``Acme`` portion is just a dummy name that should be replaced by
76-
some "vendor" name that represents you or your organization (e.g.
77-
ABCTestBundle for some company named ``ABC``).
72+
The new bundle is called AcmeTestBundle, where the ``Acme`` portion is just a
73+
dummy name that should be replaced by some "vendor" name that represents you or
74+
your organization (e.g. ABCTestBundle for some company named ``ABC``).
7875

7976
Start by creating a ``src/Acme/TestBundle/`` directory and adding a new file
8077
called ``AcmeTestBundle.php``::
@@ -182,3 +179,4 @@ Learn more
182179
bundles/*
183180

184181
.. _`third-party bundles`: https://github.com/search?q=topic%3Asymfony-bundle&type=Repositories
182+
.. _`SensioGeneratorBundle`: https://github.com/sensiolabs/SensioGeneratorBundle

email/testing.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ to get information about the messages sent on the previous request::
4747
$mailCollector = $client->getProfile()->getCollector('swiftmailer');
4848

4949
// Check that an email was sent
50-
$this->assertEquals(1, $mailCollector->getMessageCount());
50+
$this->assertSame(1, $mailCollector->getMessageCount());
5151

5252
$collectedMessages = $mailCollector->getMessages();
5353
$message = $collectedMessages[0];
5454

5555
// Asserting email data
5656
$this->assertInstanceOf('Swift_Message', $message);
57-
$this->assertEquals('Hello Email', $message->getSubject());
58-
$this->assertEquals('send@example.com', key($message->getFrom()));
59-
$this->assertEquals('recipient@example.com', key($message->getTo()));
60-
$this->assertEquals(
57+
$this->assertSame('Hello Email', $message->getSubject());
58+
$this->assertSame('send@example.com', key($message->getFrom()));
59+
$this->assertSame('recipient@example.com', key($message->getTo()));
60+
$this->assertSame(
6161
'You should see me from the profiler!',
6262
$message->getBody()
6363
);

reference/configuration/twig.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ by Symfony. Besides, it simplifies how you refer to those templates:
440440
strict_variables
441441
~~~~~~~~~~~~~~~~
442442

443-
**type**: ``boolean`` **default**: ``'%kernel.debug%'``
443+
**type**: ``boolean`` **default**: ``false``
444444

445445
If set to ``true``, Symfony shows an exception whenever a Twig variable,
446446
attribute or method doesn't exist. If set to ``false`` these errors are ignored

templating/debug.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ In a Twig template, you can use the ``dump`` utility as a function or a tag:
4949
{% dump articles %}
5050

5151
{% for article in articles %}
52-
{# the contents of this variable are display on the web page #}
52+
{# the contents of this variable are displayed on the web page #}
5353
{{ dump(article) }}
5454

5555
<a href="/article/{{ article.slug }}">

0 commit comments

Comments
 (0)