public getOutput ( ) : Symfony\Component\Console\Output\OutputInterface | ||
return | Symfony\Component\Console\Output\OutputInterface | An OutputInterface instance |
public function getOutput()
{
return $this->output;
}
/** * Display a warning if a running n98-magerun as root user * * @param Event $event * @return void */ public function checkRunningAsRootUser(Event $event) { if ($this->_isSkipRootCheck($event->getInput())) { return; } $config = $event->getApplication()->getConfig(); if (!$config['application']['check-root-user']) { return; } if (OperatingSystem::isRoot()) { $output = $event->getOutput(); $output->writeln(array('', self::WARNING_ROOT_USER, '')); } }