Upgrade RssView

Why doesnt

    //Router::extensions(['json']);

or

    Router::scope('/', function($routes) {
         $routes->extensions(['rss']);

work?