/** * {@inheritdoc} */ protected function configure() { $arguments = [new InputArgument('ip', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'Allowed IP addresses')]; $options = [new InputOption('none', null, InputOption::VALUE_NONE, 'Clear allowed IP addresses')]; $this->setName('mirasvit:profiler:allow-ips')->setDescription('Enable profiler only for specified IPs')->setDefinition(array_merge($arguments, $options)); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $this->setName('mirasvit:profiler:disable')->setDescription('Disable profiler')->setDefinition([]); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $this->setName('mirasvit:profiler:status')->setDescription('Profiler status')->setDefinition([]); parent::configure(); }