protected function _updateControllers($root, $controllers, $plugin = null, $prefix = null)
    {
        $pluginPath = $this->_pluginAlias($plugin);

        // look at each controller
        $controllersNames = [];
        foreach ($controllers as $controller) {
            $tmp = explode('/', $controller);
            $controllerName = str_replace('Controller.php', '', array_pop($tmp));
            if ($controllerName == 'App') {
                continue;
            }
            $controllersNames[] = $controllerName;
            $path = [
                $this->rootNode,
                $pluginPath,
                $prefix,
                $controllerName
            ];
            $path = implode('/', Hash::filter($path));
            if(!in_array($path, $this->ignorePaths)) {
                $controllerNode = $this->_checkNode($path, $controllerName, $root->id);
                $this->_checkMethods($controller, $controllerName, $controllerNode, $pluginPath, $prefix);
            }
        }

        return $controllersNames;
    }
protected function _updateControllers($root, $controllers, $plugin = null, $prefix = null)
    {
        $pluginPath = $this->_pluginAlias($plugin);

        // look at each controller
        $controllersNames = [];
        foreach ($controllers as $controller) {
            $tmp = explode('/', $controller);
            $controllerName = str_replace('Controller.php', '', array_pop($tmp));
            if ($controllerName == 'App') {
                continue;
            }
            $controllersNames[] = $controllerName;
            $path = [
                $this->rootNode,
                $pluginPath,
                $prefix,
                $controllerName
            ];
            $path = implode('/', Hash::filter($path));
            if(!in_array($path, $this->ignorePaths)) {
                $controllerNode = $this->_checkNode($path, $controllerName, $root->id);
                $this->_checkMethods($controller, $controllerName, $controllerNode, $pluginPath, $prefix);
            }
        }

        return $controllersNames;
    }
protected function _updateControllers ( $ root , $ controllers , $ plugin = null , $ prefix = null ) { $ pluginPath = $ this -> _pluginAlias ( $ plugin ) ; // look at each controller $ controllersNames = [ ] ; foreach ( $ controllers as $ controller ) { $ tmp = explode ( '/' , $ controller ) ; $ controllerName = str_replace ( 'Controller.php' , '' , array_pop ( $ tmp ) ) ; if ( $ controllerName == 'App' ) { continue ; } $ controllersNames [ ] = $ controllerName ; $ path = [ $ this -> rootNode , $ pluginPath , $ prefix , $ controllerName ] ; $ path = implode ( '/' , Hash :: filter ( $ path ) ) ; if ( ! in_array ( $ path , $ this -> ignorePaths ) ) { $ controllerNode = $ this -> _checkNode ( $ path , $ controllerName , $ root -> id ) ; $ this -> _checkMethods ( $ controller , $ controllerName , $ controllerNode , $ pluginPath , $ prefix ) ; } } return $ controllersNames ; }
Updates a collection of controllers.

@param array $root Array or ACO information for root node.
@param array $controllers Array of Controllers
@param string $plugin Name of the plugin you are making controllers for.
@param string $prefix Name of the prefix you are making controllers for.
@return array
Updates a collection of controllers .