File tree Expand file tree Collapse file tree 6 files changed +30
-18
lines changed Expand file tree Collapse file tree 6 files changed +30
-18
lines changed Original file line number Diff line number Diff line change @@ -96,15 +96,25 @@ in the **Unsilenced** section of the deprecation report.
96
96
Mark Tests as Legacy
97
97
--------------------
98
98
99
- There are four ways to mark a test as legacy:
99
+ There are three ways to mark a test as legacy:
100
100
101
101
* (**Recommended **) Add the ``@group legacy `` annotation to its class or method;
102
102
103
103
* Make its class name start with the ``Legacy `` prefix;
104
104
105
- * Make its method name start with ``testLegacy*() `` instead of ``test*() ``;
105
+ * Make its method name start with ``testLegacy*() `` instead of ``test*() ``.
106
106
107
- * Make its data provider start with ``provideLegacy*() `` or ``getLegacy*() ``.
107
+ .. note ::
108
+
109
+ If your data provider calls code that would usually trigger a deprecation,
110
+ you can prefix its name with ``provideLegacy `` or ``getLegacy `` to silent
111
+ these deprecations. If your data provider does not execute deprecated
112
+ code, it is not required to choose a special naming just because the
113
+ test being fed by the data provider is marked as legacy.
114
+
115
+ Also be aware that choosing one of the two legacy prefixes will not mark
116
+ tests as legacy that make use of this data provider. You still have to
117
+ mark them as legacy tests explicitly.
108
118
109
119
Configuration
110
120
-------------
Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ entity manager that connects to another database might handle the rest.
16
16
usually required. Be sure you actually need multiple entity managers before
17
17
adding in this layer of complexity.
18
18
19
+ .. caution ::
20
+
21
+ Entities cannot define associations across different entity managers. If you
22
+ need that, there are `several alternatives <https://stackoverflow.com/a/11494543/2804294 >`_
23
+ that require some custom setup.
24
+
19
25
The following configuration code shows how you can configure two entity managers:
20
26
21
27
.. configuration-block ::
Original file line number Diff line number Diff line change @@ -21,5 +21,10 @@ these cases you can set the ``validation_groups`` option to ``false``::
21
21
22
22
Note that when you do that, the form will still run basic integrity checks,
23
23
for example whether an uploaded file was too large or whether non-existing
24
- fields were submitted. If you want to suppress validation, you can use the
25
- :ref: `POST_SUBMIT event <form-dynamic-form-modification-suppressing-form-validation >`.
24
+ fields were submitted.
25
+
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
Original file line number Diff line number Diff line change @@ -655,11 +655,3 @@ field according to the current selection in the ``sport`` field:
655
655
The major benefit of submitting the whole form to just extract the updated
656
656
``position `` field is that no additional server-side code is needed; all the
657
657
code from above to generate the submitted form can be reused.
658
-
659
- .. _form-dynamic-form-modification-suppressing-form-validation :
660
-
661
- Suppressing Form Validation
662
- ---------------------------
663
-
664
- To suppress form validation, set ``validation_groups `` to ``false `` or an empty
665
- array.
Original file line number Diff line number Diff line change @@ -16,19 +16,18 @@ is passed when a command gets executed.
16
16
17
17
When a lot of logging has to happen, it's cumbersome to print information
18
18
depending on the verbosity settings (``-v ``, ``-vv ``, ``-vvv ``) because the
19
- calls need to be wrapped in conditions. The code quickly gets verbose or dirty.
20
- For example::
19
+ calls need to be wrapped in conditions. For example::
21
20
22
21
use Symfony\Component\Console\Input\InputInterface;
23
22
use Symfony\Component\Console\Output\OutputInterface;
24
23
25
24
protected function execute(InputInterface $input, OutputInterface $output)
26
25
{
27
- if ($output->getVerbosity() >= OutputInterface::VERBOSITY_DEBUG ) {
26
+ if ($output->isDebug() ) {
28
27
$output->writeln('Some info');
29
28
}
30
29
31
- if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE ) {
30
+ if ($output->isVerbose() ) {
32
31
$output->writeln('Some more info');
33
32
}
34
33
}
Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ template to customize them further).
415
415
not be deserialized correctly from the session on each request.
416
416
417
417
Congrats! Your database-loading security system is all setup! Next, add a
418
- true :doc: `login form </security/form_login >` instead of HTTP Basic
418
+ true :doc: `login form </security/form_login_setup >` instead of HTTP Basic
419
419
or keep reading for other topics.
420
420
421
421
.. _authenticating-someone-with-a-custom-entity-provider :
You can’t perform that action at this time.
0 commit comments