Magestead\Helper\HostsPluginChecker::verify PHP Метод

verify() публичный статический Метод

public static verify ( array $options, Symfony\Component\Console\Output\OutputInterface $output )
$options array
$output Symfony\Component\Console\Output\OutputInterface
    public static function verify(array $options, OutputInterface $output)
    {
        $hostPlugin = `vagrant plugin list | grep vagrant-hostsupdater`;
        if (is_null($hostPlugin)) {
            self::editHostsInstructions($options, $output);
            $output->writeln('<comment>Installing the vagrant-hostsupdater plugin will remove the need for
manual edits of your hosts file.</comment>');
        }
    }

Usage Example

Пример #1
0
 /**
  * @param array $options
  * @param OutputInterface $output
  */
 protected function showCredentials(array $options, OutputInterface $output)
 {
     $output->writeln('<info>SUCCESS: Magestead has finished installing Magento!</info>');
     $table = new Table($output);
     $table->setHeaders(['Username', 'Password', 'Base URL'])->setRows([['admin', 'password123', $options['magestead']['apps']['mba_12345']['base_url']]]);
     $table->render();
     HostsPluginChecker::verify($options, $output);
 }