public function init()
    {
        $this->register('request', function($app) {
            return new Request($app->config['baseurl']);
        });
        
        $this->register('response', function($app) {
            return new Response();
        });
        
        $this->register('router', function($app) {
            return new Router();
        });
        
        // Register the app's IoC binds
        $app = $this;
        require $this->config['appdir'] . '/iocbinds.php';
        
        // Register the app's routes
        $router = $this->get('router');
        require $this->config['appdir'] . '/routes.php';
    }
public function init()
    {
        $this->register('request', function($app) {
            return new Request($app->config['baseurl']);
        });
        
        $this->register('response', function($app) {
            return new Response();
        });
        
        $this->register('router', function($app) {
            return new Router();
        });
        
        // Register the app's IoC binds
        $app = $this;
        require $this->config['appdir'] . '/iocbinds.php';
        
        // Register the app's routes
        $router = $this->get('router');
        require $this->config['appdir'] . '/routes.php';
    }
public function init ( ) { $ this -> register ( 'request' , function ( $ app ) { return new Request ( $ app -> config [ 'baseurl' ] ) ; } ) ; $ this -> register ( 'response' , function ( $ app ) { return new Response ( ) ; } ) ; $ this -> register ( 'router' , function ( $ app ) { return new Router ( ) ; } ) ; // Register the app's IoC binds $ app = $ this ; require $ this -> config [ 'appdir' ] . '/iocbinds.php' ; // Register the app's routes $ router = $ this -> get ( 'router' ) ; require $ this -> config [ 'appdir' ] . '/routes.php' ; }
Initialise the IoC aliases and routes.
Initialise the IoC aliases and routes .