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;
    }