public function getControllersForPlugin($plugin, $pluginPath)
    {
        $controllers = [];
        $Folder = new Folder();

        $ctrlFolder = $Folder->cd($pluginPath . DS . 'src' . DS . 'Controller');

        if (!empty($ctrlFolder)) {
            $files = $Folder->find('.*Controller\.php$');
            $subLength = strlen('Controller.php');
            foreach ($files as $f) {
                $filename = basename($f);
                if ($filename === $plugin . 'AppController.php') {
                    continue;
                }
                $ctrlName = substr($filename, 0, strlen($filename) - $subLength);
                $controllers[] = [
                    'name' => $ctrlName,
                    'path' => $Folder->path . DS . $f
                ];
            }
        }

        return $controllers;
    }