N98\Magento\Command\Developer\Module\UpdateCommand::askEventsOptions PHP Method

askEventsOptions() protected method

Asks for events node options
protected askEventsOptions ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface
    protected function askEventsOptions(OutputInterface $output)
    {
        $this->initEventsConfigNodes();
        $dialog = $this->getDialog();
        $area = trim($dialog->ask($output, '<question>Area (global|frontend|adminhtml):</question>'));
        $event = trim($dialog->ask($output, '<question>Event:</question>'));
        $observer = trim($dialog->ask($output, '<question>Event Observer:</question>'));
        $observerClass = trim($dialog->ask($output, '<question>Event Observer Class:</question>'));
        $observerMethod = trim($dialog->ask($output, '<question>Event Observer Method:</question>'));
        if ($area != 'global' && $area != 'frontend' && $area != 'adminhtml') {
            throw new RuntimeException('Event area must be either "global", "frontend" or "adminhtml"');
        }
        $this->configNodes['events_area'] = $area;
        $this->configNodes['event_name'] = $event;
        $this->configNodes['event_observer'] = $observer;
        $this->configNodes['event_observer_class'] = $observerClass;
        $this->configNodes['event_observer_method'] = $observerMethod;
    }