File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 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::
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
231231Learn more
Original file line number Diff line number Diff 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 }
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
2424fields were submitted.
2525
2626The 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
5454
5555.. include :: /reference/forms/types/options/action.rst.inc
5656
57+ .. _form-option-allow-extra-fields :
58+
5759allow_extra_fields
5860~~~~~~~~~~~~~~~~~~
5961
You can’t perform that action at this time.
0 commit comments