protected function loadAdminControllers($moduleName, $controllerPath, $appPath, $ignore = [])
    {
        //  Does a path exist? Don't pollute the array with empty modules
        if (is_dir($controllerPath)) {
            //  Look for controllers
            $files = directory_map($controllerPath, 1);

            foreach ($files as $file) {
                if (in_array($file, $ignore)) {
                    continue;
                }

                $this->loadAdminController($file, $moduleName, $controllerPath, $appPath);
            }
        }
    }
protected function loadAdminControllers($moduleName, $controllerPath, $appPath, $ignore = [])
    {
        //  Does a path exist? Don't pollute the array with empty modules
        if (is_dir($controllerPath)) {
            //  Look for controllers
            $files = directory_map($controllerPath, 1);

            foreach ($files as $file) {
                if (in_array($file, $ignore)) {
                    continue;
                }

                $this->loadAdminController($file, $moduleName, $controllerPath, $appPath);
            }
        }
    }
protected function loadAdminControllers ( $ moduleName , $ controllerPath , $ appPath , $ ignore = [ ] ) { //  Does a path exist? Don't pollute the array with empty modules if ( is_dir ( $ controllerPath ) ) { //  Look for controllers $ files = directory_map ( $ controllerPath , 1 ) ; foreach ( $ files as $ file ) { if ( in_array ( $ file , $ ignore ) ) { continue ; } $ this -> loadAdminController ( $ file , $ moduleName , $ controllerPath , $ appPath ) ; } } }
Looks for admin controllers in specific locations

@param  string $moduleName     The name of the module currently being searched
@param  string $controllerPath The full path to the controllers
@param  string $appPath        If the app can extend these controllers, this is where it will place the file
@param  array  $ignore         An array of filenames to ignore

@return void
Looks for admin controllers in specific locations