/**
  * Execute this command
  *
  * @inheritdoc
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $output->writeln('<info>Started Installing!</info>');
     if (!$this->createUserAliasesDirectory()) {
         $output->writeln('<comment>Failure</comment> Aliases directory cannot be created. Installation failed.');
         return;
     }
     $this->mirror(PathHelper::getGeneralAliasesPath(), $this->getUserAliasesPath());
     $output->writeln(sprintf('<comment>%s</comment> has been installed.', 'General aliases'));
 }
Example #2
0
 /**
  * @test
  *
  * @covers  ::getBasePath
  * @covers  ::getTemplatesPath
  *
  * @return array
  */
 public function pathProvider()
 {
     return [[PathHelper::getBasePath(), 'Base Path'], [PathHelper::getTemplatesPath(), 'Template Path'], [PathHelper::getAliasesPath(), 'Aliases Path'], [PathHelper::getGeneralAliasesPath(), 'General Aliases Path']];
 }