config = $config; } protected function configure() { $this ->setName('check') ->setDescription('check dependencies of the server environment') ; } protected function execute(InputInterface $input, OutputInterface $output) { $errors = \OC_Util::checkServer($this->config); if (!empty($errors)) { $errors = array_map( function($items) { return (string)$items['error']; }, $errors); echo json_encode($errors); return 1; } return 0; } }