Skip to content

Commit b8926e4

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: 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 8acfbc8 + 776d0b7 commit b8926e4

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

bundles.rst

Lines changed: 8 additions & 10 deletions
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``::
@@ -181,3 +178,4 @@ Learn more
181178
bundles/*
182179

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

email/testing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ to get information about the messages sent on the previous request::
4545
$mailCollector = $client->getProfile()->getCollector('swiftmailer');
4646

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

5050
$collectedMessages = $mailCollector->getMessages();
5151
$message = $collectedMessages[0];
5252

5353
// Asserting email data
5454
$this->assertInstanceOf('Swift_Message', $message);
55-
$this->assertEquals('Hello Email', $message->getSubject());
56-
$this->assertEquals('send@example.com', key($message->getFrom()));
57-
$this->assertEquals('recipient@example.com', key($message->getTo()));
58-
$this->assertEquals(
55+
$this->assertSame('Hello Email', $message->getSubject());
56+
$this->assertSame('send@example.com', key($message->getFrom()));
57+
$this->assertSame('recipient@example.com', key($message->getTo()));
58+
$this->assertSame(
5959
'You should see me from the profiler!',
6060
$message->getBody()
6161
);

reference/configuration/twig.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ by Symfony. Besides, it simplifies how you refer to those templates:
442442
strict_variables
443443
~~~~~~~~~~~~~~~~
444444

445-
**type**: ``boolean`` **default**: ``'%kernel.debug%'``
445+
**type**: ``boolean`` **default**: ``false``
446446

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

templating/debug.rst

Lines changed: 1 addition & 1 deletion
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)