Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions routing/scheme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@ the URI scheme via schemes:

.. configuration-block::

.. code-block:: php-annotations

// src/AppBundle/Controller/MainController.php
namespace AppBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;

class MainController extends Controller
{
/**
* @Route("/secure", name="secure", schemes={"https"})
*/
public function secureAction()
{
// ...
}
}

.. code-block:: yaml

# app/config/routing.yml
Expand Down