/** * Handle the command. * * @param SettingRepositoryInterface $settings */ public function handle(SettingRepositoryInterface $settings) { if (!$this->builder->getOption('redirect')) { $this->builder->setOption('redirect', $settings->value('anomaly.module.users::reset_redirect', '/')); } if (!$this->builder->getOption('success_message')) { $this->builder->setOption('success_message', $settings->value('anomaly.module.users::reset_message', 'You are now logged in.')); } if (!$this->builder->getOption('container_class')) { $this->builder->setOption('container_class', 'form-wrapper'); } }
/** * Handle the command. * * @param Repository $config */ public function handle(Repository $config) { if (!$this->builder->getOption('redirect')) { $this->builder->setOption('redirect', '/'); } if (!$this->builder->getOption('success_message')) { $this->builder->setOption('success_message', 'You are now logged in.'); } if (!$this->builder->getOption('container_class')) { $this->builder->setOption('container_class', 'form-wrapper'); } }