使用Bolt cms和Silex进行简单路由

I am working on creating an extension for Bolt Cms.

In essence I am wanting to read the URL and reroute based on whatever the outcome is.

My Output is

NO You Are Here

Any help is GREATLY appreciated

namespace Bolt\Extension\local\johnm\test;

use Bolt\BaseExtension;


class Extension extends BaseExtension
{
public function initialize()
{


    $config = $this->app['config']->get('/editcontent/{contenttypeslug}/{id}', function () {

        echo "QWERTY";
        exit;
    });

    $config = $this->app['controllers_factory']->get('/overview/{contenttypeslug}', function () {

        echo "QWERTY";
        exit;
    });

    $config = $this->app['controllers_factory']->match('/content/{action}/{contenttypeslug}/{id}', function () {

        echo "QWERTY";
        exit;
    });


    echo "No You Are HERE";
    exit;
}

}

In the example above I am registering the routes you see, the problem is that the routes are already declared so others will take president, What I did was create a completely different root and register that.

public function initialize()
        {
        $this->app->get('bolt/revision/{contentType}/{id}',array($this,'getRevision'));

}

When a URL matches this, a function entitled getRevision() is called which is in THIS class