I prefer if you put all controller things around it:

````php
// src/Acme/RoutingExtraBundle/Controller/RedirectingController.php
namespace Acme\RoutingExtraBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;

class RedirectingController extends Controller
{
    public function removeTrailingSlashAction(Request $request)
    {
        // ...
    }
}