private function prepareRoutes($module, array $routes)
    {
        $result = array();

        foreach ($routes as $uriTemplate => $options) {
            // Controller is the special case
            if (isset($options['controller'])) {
                // Override with module-compliant
                $options['controller'] = sprintf('%s:%s', $this->grabModuleName($module), $options['controller']);
            }

            $result[$uriTemplate] = $options;
        }

        return $result;
    }
private function prepareRoutes($module, array $routes)
    {
        $result = array();

        foreach ($routes as $uriTemplate => $options) {
            // Controller is the special case
            if (isset($options['controller'])) {
                // Override with module-compliant
                $options['controller'] = sprintf('%s:%s', $this->grabModuleName($module), $options['controller']);
            }

            $result[$uriTemplate] = $options;
        }

        return $result;
    }
private function prepareRoutes ( $ module , array $ routes ) { $ result = array ( ) ; foreach ( $ routes as $ uriTemplate => $ options ) { // Controller is the special case if ( isset ( $ options [ 'controller' ] ) ) { // Override with module-compliant $ options [ 'controller' ] = sprintf ( '%s:%s' , $ this -> grabModuleName ( $ module ) , $ options [ 'controller' ] ) ; } $ result [ $ uriTemplate ] = $ options ; } return $ result ; }
Prepends module name to each route

@param string $module
@param array $routes
@return array
Prepends module name to each route