protected function smashResource($name, $resource, $item, $controller, &$return)
    {
        $pattern = "{$name}::{$resource}::";
        if (starts_with($item, $pattern)) {
            $id                                               = $this->collector->id($item);
            $actionForm                                       = preg_replace("/{$pattern}/", '', $item);
            $smashed                                          = explode('::', $actionForm);
            return $return[$resource][$controller][$smashed[0]][$id] = $smashed[1];
        }
    }
protected function smashResource($name, $resource, $item, $controller, &$return)
    {
        $pattern = "{$name}::{$resource}::";
        if (starts_with($item, $pattern)) {
            $id                                               = $this->collector->id($item);
            $actionForm                                       = preg_replace("/{$pattern}/", '', $item);
            $smashed                                          = explode('::', $actionForm);
            return $return[$resource][$controller][$smashed[0]][$id] = $smashed[1];
        }
    }
protected function smashResource ( $ name , $ resource , $ item , $ controller , & $ return ) { $ pattern = "{$name}::{$resource}::" ; if ( starts_with ( $ item , $ pattern ) ) { $ id = $ this -> collector -> id ( $ item ) ; $ actionForm = preg_replace ( "/{$pattern}/" , '' , $ item ) ; $ smashed = explode ( '::' , $ actionForm ) ; return $ return [ $ resource ] [ $ controller ] [ $ smashed [ 0 ] ] [ $ id ] = $ smashed [ 1 ] ; } }
find smashed resource

@param String $name
@param String $resource
@param array $item
@param String $controller
@param array $return
@return array
find smashed resource