```php
$collection->add(
    'remove_trailing_slash',
    new Route(
        '/{url}',
        array(
            '_controller' => 'AcmeDemoBundle:Redirecting:removeTrailingSlash',
        ),
        array(
            'url' => '.*/$',
            '_method' => 'GET',
        )
    )
);
```