芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/system/Console/Commands/ModelsCommand.php
set('ide-helper.model_hooks', [Hook::class]); $this->setLaravel($appContainer); parent::__construct($appContainer['filesystem']); } protected function execute(InputInterface $input, OutputInterface $output): int { if ($this->option('all-models')) { $aModules = Api::GetModuleManager()->GetModulesPaths(); $aModulesModelsPaths = array_map(function ($sModule, $sPath) { return $sPath . $sModule . DIRECTORY_SEPARATOR . 'Models'; }, array_keys($aModules), $aModules); App::make('config')->set('ide-helper.model_locations', [$aModulesModelsPaths]); } return parent::execute($input, $output); } /** * Get the console command options. * * @return array */ protected function getOptions() { $options = parent::getOptions(); $options[] = ['all-models', 'A', InputOption::VALUE_NONE, 'Find and generate phpdocs for all models']; return $options; } }