plugin_status = $plugin_status; $this->flash = $flash; } /** * @return null|Redirect_Response */ public function handle() { if ( $this->plugin_status->client_completed_registration() ) { $this->flash->add_message( 'error', 'account-exists' ); return $this->redirect( new Action_URL( Action_Index::SUBMENU_DASHBOARD ) ); } return $this->next->handle(); } }