src/Synapse/Controller/ControllerServiceProvider.php
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;
            }
        );
    }
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;
            }
        );
    }
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 ; } ) ; }
Register the controller resolver and initializers

@param  Application $app
Register the controller resolver and initializers