public function load()
    {
        foreach ($this->registers as $register) {
            $registerInstance = $register instanceof RouteRegister ? $register : new $register;
            $registerInstance->register($this->routeCollector);
        }

        return $this->routeCollector->setContainer($this->container)->getData();
    }
public function load()
    {
        foreach ($this->registers as $register) {
            $registerInstance = $register instanceof RouteRegister ? $register : new $register;
            $registerInstance->register($this->routeCollector);
        }

        return $this->routeCollector->setContainer($this->container)->getData();
    }
public function load ( ) { foreach ( $ this -> registers as $ register ) { $ registerInstance = $ register instanceof RouteRegister ? $ register : new $ register ; $ registerInstance -> register ( $ this -> routeCollector ) ; } return $ this -> routeCollector -> setContainer ( $ this -> container ) -> getData ( ) ; }
Load routes from route register

@return array
Load routes from route register