src/Mvc/Router.php
private function setCustomRoutesFromConfig()
    {
        // we be checkin' our instruction fer configgered routes
        $configgeration = Registry::ahoy()->get('routes');

        // stick some voodoo pins in the map
        foreach ($configgeration as $route => $options) {
            // add the route t' the map
            $this->routes[] = new Route($route, $options);
        }
    }
private function setCustomRoutesFromConfig()
    {
        // we be checkin' our instruction fer configgered routes
        $configgeration = Registry::ahoy()->get('routes');

        // stick some voodoo pins in the map
        foreach ($configgeration as $route => $options) {
            // add the route t' the map
            $this->routes[] = new Route($route, $options);
        }
    }
private function setCustomRoutesFromConfig ( ) { // we be checkin' our instruction fer configgered routes $ configgeration = Registry :: ahoy ( ) -> get ( 'routes' ) ; // stick some voodoo pins in the map foreach ( $ configgeration as $ route => $ options ) { // add the route t' the map $ this -> routes [ ] = new Route ( $ route , $ options ) ; } }
gets custom routes from config
gets custom routes from config