Make InstallCommand properties and methods private

This commit is contained in:
Yassine Guedidi 2022-09-03 02:54:30 +02:00 committed by Jérémy Benoist
parent 8f20df6559
commit 39cd51a3f9

View File

@ -26,17 +26,17 @@ class InstallCommand extends ContainerAwareCommand
/** /**
* @var InputInterface * @var InputInterface
*/ */
protected $defaultInput; private $defaultInput;
/** /**
* @var SymfonyStyle * @var SymfonyStyle
*/ */
protected $io; private $io;
/** /**
* @var array * @var array
*/ */
protected $functionExists = [ private $functionExists = [
'curl_exec', 'curl_exec',
'curl_multi_init', 'curl_multi_init',
]; ];
@ -81,7 +81,7 @@ class InstallCommand extends ContainerAwareCommand
$this->io->success('You can now configure your web server, see https://doc.wallabag.org'); $this->io->success('You can now configure your web server, see https://doc.wallabag.org');
} }
protected function checkRequirements() private function checkRequirements()
{ {
$this->io->section('Step 1 of 4: Checking system requirements.'); $this->io->section('Step 1 of 4: Checking system requirements.');
@ -181,7 +181,7 @@ class InstallCommand extends ContainerAwareCommand
return $this; return $this;
} }
protected function setupDatabase() private function setupDatabase()
{ {
$this->io->section('Step 2 of 4: Setting up database.'); $this->io->section('Step 2 of 4: Setting up database.');
@ -249,7 +249,7 @@ class InstallCommand extends ContainerAwareCommand
return $this; return $this;
} }
protected function setupAdmin() private function setupAdmin()
{ {
$this->io->section('Step 3 of 4: Administration setup.'); $this->io->section('Step 3 of 4: Administration setup.');
@ -284,7 +284,7 @@ class InstallCommand extends ContainerAwareCommand
return $this; return $this;
} }
protected function setupConfig() private function setupConfig()
{ {
$this->io->section('Step 4 of 4: Config setup.'); $this->io->section('Step 4 of 4: Config setup.');
$em = $this->getContainer()->get(EntityManagerInterface::class); $em = $this->getContainer()->get(EntityManagerInterface::class);
@ -320,7 +320,7 @@ class InstallCommand extends ContainerAwareCommand
* @param string $command * @param string $command
* @param array $parameters Parameters to this command (usually 'force' => true) * @param array $parameters Parameters to this command (usually 'force' => true)
*/ */
protected function runCommand($command, $parameters = []) private function runCommand($command, $parameters = [])
{ {
if (!$this->runOtherCommands) { if (!$this->runOtherCommands) {
return $this; return $this;