Skip to content

Commit ae038cf

Browse files
committed
Merge branch '4.0'
* 4.0: Fixed a typo in var_dumper component Removed some unneeded white spaces Fixed a typo in templating/debug.rst Mention the SensioGeneratorBundle in the bundles article Use stricter syntax when testing Update routing.rst Fix default value of strict_variables minor #9042 add missing twig dump construct (hellomedia, javiereguiluz)
2 parents a0290a1 + a223c94 commit ae038cf

File tree

6 files changed

+14
-21
lines changed

6 files changed

+14
-21
lines changed

bundles.rst

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,10 @@ file::
4444
Creating a Bundle
4545
-----------------
4646

47-
The Symfony Standard Edition comes with a handy task that creates a fully-functional
48-
bundle for you. Of course, creating a bundle by hand is pretty easy as well.
49-
50-
To show you how simple the bundle system is, create a new bundle called
51-
AcmeTestBundle and enable it.
52-
53-
.. tip::
54-
55-
The ``Acme`` portion is just a dummy name that should be replaced by
56-
some "vendor" name that represents you or your organization (e.g.
57-
ABCTestBundle for some company named ``ABC``).
47+
This section creates and enables a new bundle to show how simple is to do it.
48+
The new bundle is called AcmeTestBundle, where the ``Acme`` portion is just a
49+
dummy name that should be replaced by some "vendor" name that represents you or
50+
your organization (e.g. ABCTestBundle for some company named ``ABC``).
5851

5952
Start by creating a ``src/Acme/TestBundle/`` directory and adding a new file
6053
called ``AcmeTestBundle.php``::

components/asset.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ class can take into account the context of the current request::
204204
new StaticVersionStrategy('v1'),
205205
new RequestStackContext($requestStack)
206206
);
207-
207+
208208
echo $package->getUrl('logo.png');
209209
// result: /somewhere/static/images/logo.png?v1
210-
210+
211211
// Both "base path" and "base url" are ignored when using absolute path for asset
212212
echo $package->getUrl('/logo.png');
213213
// result: /logo.png?v1

email/testing.rst

Lines changed: 5 additions & 5 deletions
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('[email protected]', key($message->getFrom()));
59-
$this->assertEquals('[email protected]', key($message->getTo()));
60-
$this->assertEquals(
57+
$this->assertSame('Hello Email', $message->getSubject());
58+
$this->assertSame('[email protected]', key($message->getFrom()));
59+
$this->assertSame('[email protected]', key($message->getTo()));
60+
$this->assertSame(
6161
'You should see me from the profiler!',
6262
$message->getBody()
6363
);

reference/configuration/twig.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ by Symfony. Besides, it simplifies how you refer to those templates:
451451
strict_variables
452452
~~~~~~~~~~~~~~~~
453453

454-
**type**: ``boolean`` **default**: ``'%kernel.debug%'``
454+
**type**: ``boolean`` **default**: ``false``
455455

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

routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ But if you pass extra ones, they will be added to the URI as a query string::
578578

579579
$this->router->generate('blog', array(
580580
'page' => 2,
581-
'category' => 'Symfony'
581+
'category' => 'Symfony',
582582
));
583583
// /blog/2?category=Symfony
584584

templating/debug.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ In a Twig template, you can use the ``dump`` utility as a function or a tag:
5555
{% dump articles %}
5656

5757
{% for article in articles %}
58-
{# the contents of this variable are display on the web page #}
58+
{# the contents of this variable are displayed on the web page #}
5959
{{ dump(article) }}
6060

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

0 commit comments

Comments
 (0)