Skip to content

Commit 1a3b7d9

Browse files
committed
Merge branch '4.2'
* 4.2: regroup some constraints typo in comment (php example) promote AbstractController in 4.2 branch Fix stateless mention [Mercure] Fix link to high-level implementations
2 parents c5a0f86 + 746baa2 commit 1a3b7d9

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

http_cache/validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ To see a simple implementation, generate the ETag as the md5 of the content::
6262
// src/Controller/DefaultController.php
6363
namespace App\Controller;
6464

65-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
65+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
6666
use Symfony\Component\HttpFoundation\Request;
6767

6868
class DefaultController extends AbstractController

mercure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ its Mercure support.
532532
.. _`the Mercure protocol`: https://github.com/dunglas/mercure#protocol-specification
533533
.. _`Server-Sent Events (SSE)`: https://developer.mozilla.org/docs/Server-sent_events
534534
.. _`a polyfill`: https://github.com/Yaffle/EventSource
535-
.. _`high-level implementations`: https://github.com/dunglas/mercure#resources
535+
.. _`high-level implementations`: https://github.com/dunglas/mercure#tools
536536
.. _`In this recording`: https://www.youtube.com/watch?v=UI1l0JOjLeI
537537
.. _`API Platform`: https://api-platform.com
538538
.. _`Mercure.rocks`: https://mercure.rocks

reference/constraints/map.rst.inc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ String Constraints
2020
* :doc:`Url </reference/constraints/Url>`
2121
* :doc:`Regex </reference/constraints/Regex>`
2222
* :doc:`Ip </reference/constraints/Ip>`
23-
* :doc:`Uuid</reference/constraints/Uuid>`
2423
* :doc:`Json</reference/constraints/Json>`
24+
* :doc:`Uuid</reference/constraints/Uuid>`
25+
* :doc:`UserPassword </reference/constraints/UserPassword>`
2526

2627
Comparison Constraints
2728
~~~~~~~~~~~~~~~~~~~~~~
@@ -44,13 +45,10 @@ Date Constraints
4445
* :doc:`DateTime </reference/constraints/DateTime>`
4546
* :doc:`Time </reference/constraints/Time>`
4647

47-
Collection Constraints
48-
~~~~~~~~~~~~~~~~~~~~~~
48+
Choice Constraints
49+
~~~~~~~~~~~~~~~~~~
4950

5051
* :doc:`Choice </reference/constraints/Choice>`
51-
* :doc:`Collection </reference/constraints/Collection>`
52-
* :doc:`Count </reference/constraints/Count>`
53-
* :doc:`UniqueEntity </reference/constraints/UniqueEntity>`
5452
* :doc:`Language </reference/constraints/Language>`
5553
* :doc:`Locale </reference/constraints/Locale>`
5654
* :doc:`Country </reference/constraints/Country>`
@@ -78,5 +76,7 @@ Other Constraints
7876
* :doc:`Callback </reference/constraints/Callback>`
7977
* :doc:`Expression </reference/constraints/Expression>`
8078
* :doc:`All </reference/constraints/All>`
81-
* :doc:`UserPassword </reference/constraints/UserPassword>`
8279
* :doc:`Valid </reference/constraints/Valid>`
80+
* :doc:`Collection </reference/constraints/Collection>`
81+
* :doc:`Count </reference/constraints/Count>`
82+
* :doc:`UniqueEntity </reference/constraints/UniqueEntity>`

routing/conditions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ define arbitrary matching logic, use the ``conditions`` routing option:
1515
// src/Controller/DefaultController.php
1616
namespace App\Controller;
1717
18-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
18+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1919
use Symfony\Component\Routing\Annotation\Route;
2020
21-
class DefaultController extends Controller
21+
class DefaultController extends AbstractController
2222
{
2323
/**
2424
* @Route(

security/user_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ command will generate a nice skeleton to get you started::
379379
* called. Your job is to make sure the user's data is still fresh by,
380380
* for example, re-querying for fresh User data.
381381
*
382-
* If your firewall is "stateless: false" (for a pure API), this
382+
* If your firewall is "stateless: true" (for a pure API), this
383383
* method is not called.
384384
*
385385
* @return UserInterface

web_link.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ You can also add links to the HTTP response directly from controllers and servic
153153

154154
use Fig\Link\GenericLinkProvider;
155155
use Fig\Link\Link;
156-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
156+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
157157
use Symfony\Component\HttpFoundation\Request;
158158

159-
class BlogController extends Controller
159+
class BlogController extends AbstractController
160160
{
161161
public function index(Request $request)
162162
{

0 commit comments

Comments
 (0)