Skip to content

Commit f7ba37a

Browse files
committed
Merge branch '2.7' into 2.8
Conflicts: form/create_custom_field_type.rst
2 parents 0fffa1c + c72dde0 commit f7ba37a

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

components/filesystem.rst

-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ complete new file (but never a partially-written file)::
252252

253253
The ``file.txt`` file contains ``Hello World`` now.
254254

255-
A desired file mode can be passed as the third argument.
256-
257255
Error Handling
258256
--------------
259257

components/options_resolver.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ the closure::
505505
{
506506
parent::configureOptions($resolver);
507507

508-
$options->setDefault('host', function (Options $options, $previousValue) {
508+
$resolver->setDefault('host', function (Options $options, $previousValue) {
509509
if ('ssl' === $options['encryption']) {
510510
return 'secure.example.org'
511511
}

components/var_dumper.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ current PHP SAPI:
6161
.. note::
6262

6363
If you want to catch the dump output as a string, please read the
64-
`advanced documentation <advanced>`_ which contains examples of it.
64+
:doc:`advanced documentation </components/var_dumper/advanced>` which contains examples of it.
6565
You'll also learn how to change the format or redirect the output to
6666
wherever you want.
6767

configuration.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ key:
244244
$container->setParameter('locale', 'en');
245245
246246
$container->loadFromExtension('framework', array(
247-
'default_locale' => '%en%',
247+
'default_locale' => '%locale%',
248248
// ...
249249
));
250250

controller.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ This controller is pretty straightforward:
9393

9494
* *line 12*: Each action method in a controller class is suffixed with ``Action``
9595
(again, this isn't *required*, but some shortcuts rely on this). This method
96-
is allowed to have a ``$name`` argument thanks to the ``{name}``
96+
is allowed to have a ``$max`` argument thanks to the ``{max}``
9797
:doc:`wildcard in the route </routing>`.
9898

9999
* *line 16*: The controller creates and returns a ``Response`` object.
@@ -324,7 +324,7 @@ The Request object as a Controller Argument
324324
What if you need to read query parameters, grab a request header or get access
325325
to an uploaded file? All of that information is stored in Symfony's ``Request``
326326
object. To get it in your controller, just add it as an argument and
327-
**type-hint it with the ``Request`` class**::
327+
**type-hint it with the Request class**::
328328

329329
use Symfony\Component\HttpFoundation\Request;
330330

0 commit comments

Comments
 (0)