We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861e72b commit 4b9d981Copy full SHA for 4b9d981
routing/scheme.rst
@@ -10,6 +10,25 @@ the URI scheme via schemes:
10
11
.. configuration-block::
12
13
+ .. code-block:: php-annotations
14
+
15
+ // src/AppBundle/Controller/MainController.php
16
+ namespace AppBundle\Controller;
17
18
+ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
19
+ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
20
21
+ class MainController extends Controller
22
+ {
23
+ /**
24
+ * @Route("/secure", name="secure", schemes={"HTTPS"})
25
+ */
26
+ public function secureAction()
27
28
+ // ...
29
+ }
30
31
32
.. code-block:: yaml
33
34
# app/config/routing.yml
0 commit comments