Skip to content

Commit 0381e78

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Improved the example to generate URLs in the console minor #8704 Client's history clear alternative (takman1) use the ref role instead of URLs
2 parents 93a975c + f884555 commit 0381e78

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

components/browser_kit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ also delete all the cookies::
225225
$client = new Client();
226226
$client->request('GET', '/');
227227

228-
// delete history
228+
// reset the client (history and cookies are cleared too)
229229
$client->restart();
230230

231231
Learn more

console/request_context.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,13 @@ from the ``router`` service and override its settings::
7272
{
7373
protected function execute(InputInterface $input, OutputInterface $output)
7474
{
75-
$context = $this->getContainer()->get('router')->getContext();
75+
$router = $this->getContainer()->get('router');
76+
$context = $router->getContext();
7677
$context->setHost('example.com');
7778
$context->setScheme('https');
7879
$context->setBaseUrl('my/path');
7980

80-
// ... your code here
81+
$url = $router->generate('route-name', array('param-name' => 'param-value'));
82+
// ...
8183
}
8284
}

form/disabling_validation.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ for example whether an uploaded file was too large or whether non-existing
2424
fields were submitted.
2525

2626
The submission of extra form fields can be controlled with the
27-
`allow_extra_fields config option`_ and the maximum upload file size should be
28-
handled via your PHP and web server configuration.
29-
30-
.. _`allow_extra_fields config option`: https://symfony.com/doc/current/reference/forms/types/form.html#allow-extra-fields
27+
:ref:`allow_extra_fields config option <form-option-allow-extra-fields>` and
28+
the maximum upload file size should be handled via your PHP and web server
29+
configuration.

reference/forms/types/form.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ Field Options
5454

5555
.. include:: /reference/forms/types/options/action.rst.inc
5656

57+
.. _form-option-allow-extra-fields:
58+
5759
allow_extra_fields
5860
~~~~~~~~~~~~~~~~~~
5961

0 commit comments

Comments
 (0)