File tree 4 files changed +10
-7
lines changed
4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ also delete all the cookies::
225
225
$client = new Client();
226
226
$client->request('GET', '/');
227
227
228
- // delete history
228
+ // reset the client ( history and cookies are cleared too)
229
229
$client->restart();
230
230
231
231
Learn more
Original file line number Diff line number Diff line change @@ -72,11 +72,13 @@ from the ``router`` service and override its settings::
72
72
{
73
73
protected function execute(InputInterface $input, OutputInterface $output)
74
74
{
75
- $context = $this->getContainer()->get('router')->getContext();
75
+ $router = $this->getContainer()->get('router');
76
+ $context = $router->getContext();
76
77
$context->setHost('example.com');
77
78
$context->setScheme('https');
78
79
$context->setBaseUrl('my/path');
79
80
80
- // ... your code here
81
+ $url = $router->generate('route-name', array('param-name' => 'param-value'));
82
+ // ...
81
83
}
82
84
}
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ for example whether an uploaded file was too large or whether non-existing
24
24
fields were submitted.
25
25
26
26
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.
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ Field Options
54
54
55
55
.. include :: /reference/forms/types/options/action.rst.inc
56
56
57
+ .. _form-option-allow-extra-fields :
58
+
57
59
allow_extra_fields
58
60
~~~~~~~~~~~~~~~~~~
59
61
You can’t perform that action at this time.
0 commit comments