original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Determine the path for a given url array.
  
  @param array $url The url parameters.
  @return string
docstring_tokens: Determine the path for a given url array .