public function register(Application $app)
    {
        $app['resolver'] = $app->share($app->extend('resolver', function ($resolver, $app) {
            return new Resolver($resolver, $app);
        }));

        $app->initializer(
            'Synapse\\Application\\UrlGeneratorAwareInterface',
            function ($object, $app) {
                $object->setUrlGenerator($app['url_generator']);
                return $object;
            }
        );

        $app->initializer(
            'Synapse\\Debug\\DebugModeAwareInterface',
            function ($object, $app) {
                $object->setDebug($app['debug']);
                return $object;
            }
        );
    }