public function toCompliant($notation)
    {
        $chunks = explode(self::ROUTE_SYNTAX_SEPARATOR, $notation);

        // Save the action into a variable
        $action = $chunks[1];
        // Break what we have according to separators now
        $parts = explode(':', $chunks[0]);
        // Take a module and save it now
        $module = array_shift($parts);
        // It's time to build PSR-0 compliant path
        $path = sprintf('/%s/%s/%s', $module, self::ROUTE_CONTROLLER_DIR, implode('/', $parts));
        
        return array($path => $action);
    }
public function toCompliant($notation)
    {
        $chunks = explode(self::ROUTE_SYNTAX_SEPARATOR, $notation);

        // Save the action into a variable
        $action = $chunks[1];
        // Break what we have according to separators now
        $parts = explode(':', $chunks[0]);
        // Take a module and save it now
        $module = array_shift($parts);
        // It's time to build PSR-0 compliant path
        $path = sprintf('/%s/%s/%s', $module, self::ROUTE_CONTROLLER_DIR, implode('/', $parts));
        
        return array($path => $action);
    }
public function toCompliant ( $ notation ) { $ chunks = explode ( self :: ROUTE_SYNTAX_SEPARATOR , $ notation ) ; // Save the action into a variable $ action = $ chunks [ 1 ] ; // Break what we have according to separators now $ parts = explode ( ':' , $ chunks [ 0 ] ) ; // Take a module and save it now $ module = array_shift ( $ parts ) ; // It's time to build PSR-0 compliant path $ path = sprintf ( '/%s/%s/%s' , $ module , self :: ROUTE_CONTROLLER_DIR , implode ( '/' , $ parts ) ) ; return array ( $ path => $ action ) ; }
Converts route notation syntax back to PSR-0 compliant

@param string $notation
@return array
Converts route notation syntax back to PSR - 0 compliant