protected function parsePath($path)
    {
        $path = ltrim($path, '/');
        foreach ($this->combinedResources as $resource) {
            if (strpos($path, $resource) !== false) {
                list($part1, $part2) = explode($resource, $path, 2);
                $parts = array_merge(explode('/', $part1), array($resource), explode('/', $part2));
                return array_values(array_filter($parts));
            }
        }
        return explode('/', $path);
    }
protected function parsePath($path)
    {
        $path = ltrim($path, '/');
        foreach ($this->combinedResources as $resource) {
            if (strpos($path, $resource) !== false) {
                list($part1, $part2) = explode($resource, $path, 2);
                $parts = array_merge(explode('/', $part1), array($resource), explode('/', $part2));
                return array_values(array_filter($parts));
            }
        }
        return explode('/', $path);
    }
protected function parsePath ( $ path ) { $ path = ltrim ( $ path , '/' ) ; foreach ( $ this -> combinedResources as $ resource ) { if ( strpos ( $ path , $ resource ) !== false ) { list ( $ part1 , $ part2 ) = explode ( $ resource , $ path , 2 ) ; $ parts = array_merge ( explode ( '/' , $ part1 ) , array ( $ resource ) , explode ( '/' , $ part2 ) ) ; return array_values ( array_filter ( $ parts ) ) ; } } return explode ( '/' , $ path ) ; }
Parse path to resource names, actions and ids

@param string $path
@return array
Parse path to resource names actions and ids