Skip to content

Commit e0535ef

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: Update controller.rst Fix typo in bundles/extension.rst
2 parents febdd78 + 4d3a14c commit e0535ef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bundles/extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ This is the traditional way of loading service definitions in bundles. For new
7171
bundles it's recommended to :ref:`load your services in the main bundle class <bundle-load-services-bundle-class>`,
7272
but the traditional way of creating an extension class still works.
7373

74-
A depdendency injection extension is defined as a class that follows these
74+
A dependency injection extension is defined as a class that follows these
7575
conventions (later you'll learn how to skip them if needed):
7676

7777
* It has to live in the ``DependencyInjection`` namespace of the bundle;

controller.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ optional validation constraints::
410410
You can then use the :class:`Symfony\\Component\\HttpKernel\\Attribute\\MapQueryString`
411411
attribute in your controller::
412412

413-
use App\Model\UserDto;
413+
use App\Model\UserDTO;
414414
use Symfony\Component\HttpFoundation\Response;
415415
use Symfony\Component\HttpKernel\Attribute\MapQueryString;
416416

@@ -445,7 +445,7 @@ The default status code returned if the validation fails is 404.
445445
If you need a valid DTO even when the request query string is empty, set a
446446
default value for your controller arguments::
447447

448-
use App\Model\UserDto;
448+
use App\Model\UserDTO;
449449
use Symfony\Component\HttpFoundation\Response;
450450
use Symfony\Component\HttpKernel\Attribute\MapQueryString;
451451

@@ -479,7 +479,7 @@ In this case, it is also possible to directly map this payload to your DTO by
479479
using the :class:`Symfony\\Component\\HttpKernel\\Attribute\\MapRequestPayload`
480480
attribute::
481481

482-
use App\Model\UserDto;
482+
use App\Model\UserDTO;
483483
use Symfony\Component\HttpFoundation\Response;
484484
use Symfony\Component\HttpKernel\Attribute\MapRequestPayload;
485485

0 commit comments

Comments
 (0)