File tree Expand file tree Collapse file tree 8 files changed +10
-10
lines changed
Filter options
Expand file tree Collapse file tree 8 files changed +10
-10
lines changed
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ it is possible to remove this need by declaring a single command application::
29
29
->setDefaultCommand('echo', true) // Single command application
30
30
->run();
31
31
32
- The method :method: `Symfony\\ Component\\ Console\\ Application::setDefaultCommand `
32
+ The :method: `Symfony\\ Component\\ Console\\ Application::setDefaultCommand ` method
33
33
accepts a boolean as second parameter. If true, the command ``echo `` will then
34
34
always be used, without having to pass its name.
35
35
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ been set::
285
285
}
286
286
}
287
287
288
- The method :method: `Symfony\\ Component\\ OptionsResolver\\ OptionsResolver::getMissingOptions `
288
+ The :method: `Symfony\\ Component\\ OptionsResolver\\ OptionsResolver::getMissingOptions ` method
289
289
lets you access the names of all missing options.
290
290
291
291
Type Validation
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Routing System Setup
31
31
A routing system has three parts:
32
32
33
33
* A :class: `Symfony\\ Component\\ Routing\\ RouteCollection `, which contains the
34
- route definitions (instances of the class :class: `Symfony\\ Component\\ Routing\\ Route `);
34
+ route definitions (instances of the :class: `Symfony\\ Component\\ Routing\\ Route ` class );
35
35
* A :class: `Symfony\\ Component\\ Routing\\ RequestContext `, which has information
36
36
about the request;
37
37
* A :class: `Symfony\\ Component\\ Routing\\ Matcher\\ UrlMatcher `, which performs
Original file line number Diff line number Diff line change @@ -100,10 +100,10 @@ Authentication Providers
100
100
101
101
Each provider (since it implements
102
102
:class: `Symfony\\ Component\\ Security\\ Core\\ Authentication\\ Provider\\ AuthenticationProviderInterface `)
103
- has a method :method: `Symfony\\ Component\\ Security\\ Core\\ Authentication\\ Provider\\ AuthenticationProviderInterface::supports `
103
+ has a :method: `Symfony\\ Component\\ Security\\ Core\\ Authentication\\ Provider\\ AuthenticationProviderInterface::supports ` method
104
104
by which the ``AuthenticationProviderManager ``
105
105
can determine if it supports the given token. If this is the case, the
106
- manager then calls the provider's method :method: `Symfony\\ Component\\ Security\\ Core\\ Authentication\\ Provider\\ AuthenticationProviderInterface::authenticate `.
106
+ manager then calls the provider's :method: `Symfony\\ Component\\ Security\\ Core\\ Authentication\\ Provider\\ AuthenticationProviderInterface::authenticate ` method .
107
107
This method should return an authenticated token or throw an
108
108
:class: `Symfony\\ Component\\ Security\\ Core\\ Exception\\ AuthenticationException `
109
109
(or any other exception extending it).
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ Finally, you need to update the code of the controller that handles the form::
143
143
144
144
if ($form->isSubmitted() && $form->isValid()) {
145
145
/** @var UploadedFile $brochureFile */
146
- $brochureFile = $form[ 'brochure'] ->getData();
146
+ $brochureFile = $form->get( 'brochure') ->getData();
147
147
148
148
// this condition is needed because the 'brochure' field is not required
149
149
// so the PDF file must be processed only when a file is uploaded
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ Validates that a value is a valid "file", which can be one of the following:
6
6
* A string (or object with a ``__toString() `` method) path to an existing
7
7
file;
8
8
* A valid :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ File ` object
9
- (including objects of class :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ UploadedFile `).
9
+ (including objects of :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ UploadedFile ` class ).
10
10
11
- This constraint is commonly used in forms with the :doc: `FileType </ reference/forms/types/file >`
11
+ This constraint is commonly used in forms with the :doc: `FileType <reference/forms/types/file >`
12
12
form field.
13
13
14
14
.. tip ::
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ on the ``validator`` service (which implements :class:`Symfony\\Component\\Valid
127
127
The job of the ``validator `` is to read the constraints (i.e. rules)
128
128
of a class and verify if the data on the object satisfies those
129
129
constraints. If validation fails, a non-empty list of errors
130
- (class :class: `Symfony\\ Component\\ Validator\\ ConstraintViolationList `) is
130
+ (:class: `Symfony\\ Component\\ Validator\\ ConstraintViolationList ` class ) is
131
131
returned. Take this simple example from inside a controller::
132
132
133
133
// ...
Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ This means that each event has access to the following information:
443
443
:method: `Symfony\\ Component\\ Workflow\\ Event\\ Event::getMetadata `
444
444
Returns a metadata.
445
445
446
- For Guard Events, there is an extended class :class: `Symfony\\ Component\\ Workflow\\ Event\\ GuardEvent `.
446
+ For Guard Events, there is an extended :class: `Symfony\\ Component\\ Workflow\\ Event\\ GuardEvent ` class .
447
447
This class has two more methods:
448
448
449
449
:method: `Symfony\\ Component\\ Workflow\\ Event\\ GuardEvent::isBlocked `
You can’t perform that action at this time.
0 commit comments