public function getPathFromUrl($url)
    {
        $cacheKey = md5(serialize($url));

        return Cache::remember($cacheKey, function () use ($url) {
            $plugin = 'App';
            $action = 'index';

            $parsedUrl = !is_array($url) ? Router::parse($url) : $url;

            if (isset($parsedUrl['plugin']) && !empty($parsedUrl['plugin'])) {
                $plugin = $parsedUrl['plugin'];
            }
            $controller = $parsedUrl['controller'];
            if (isset($parsedUrl['action']) && $parsedUrl['action'] !== '') {
                $action = $parsedUrl['action'];
            }

            return $plugin . '.' . $controller . '.' . $action;
        }, 'wasabi/core/guardian_paths');
    }
public function getPathFromUrl($url)
    {
        $cacheKey = md5(serialize($url));

        return Cache::remember($cacheKey, function () use ($url) {
            $plugin = 'App';
            $action = 'index';

            $parsedUrl = !is_array($url) ? Router::parse($url) : $url;

            if (isset($parsedUrl['plugin']) && !empty($parsedUrl['plugin'])) {
                $plugin = $parsedUrl['plugin'];
            }
            $controller = $parsedUrl['controller'];
            if (isset($parsedUrl['action']) && $parsedUrl['action'] !== '') {
                $action = $parsedUrl['action'];
            }

            return $plugin . '.' . $controller . '.' . $action;
        }, 'wasabi/core/guardian_paths');
    }
public function getPathFromUrl ( $ url ) { $ cacheKey = md5 ( serialize ( $ url ) ) ; return Cache :: remember ( $ cacheKey , function ( ) use ( $ url ) { $ plugin = 'App' ; $ action = 'index' ; $ parsedUrl = ! is_array ( $ url ) ? Router :: parse ( $ url ) : $ url ; if ( isset ( $ parsedUrl [ 'plugin' ] ) && ! empty ( $ parsedUrl [ 'plugin' ] ) ) { $ plugin = $ parsedUrl [ 'plugin' ] ; } $ controller = $ parsedUrl [ 'controller' ] ; if ( isset ( $ parsedUrl [ 'action' ] ) && $ parsedUrl [ 'action' ] !== '' ) { $ action = $ parsedUrl [ 'action' ] ; } return $ plugin . '.' . $ controller . '.' . $ action ; } , 'wasabi/core/guardian_paths' ) ; }
Determine the path for a given url array.

@param array $url The url parameters.
@return string
Determine the path for a given url array .