getConfig(); $themeManager = $this->getThemeManager(); $request = $this->getEntityManager()->getRepository('PasswordChangeRequest')->where([ 'requestId' => $requestId ])->findOne(); $strengthParams = [ 'passwordStrengthLength' => $this->getConfig()->get('passwordStrengthLength'), 'passwordStrengthLetterCount' => $this->getConfig()->get('passwordStrengthLetterCount'), 'passwordStrengthNumberCount' => $this->getConfig()->get('passwordStrengthNumberCount'), 'passwordStrengthBothCases' => $this->getConfig()->get('passwordStrengthBothCases'), ]; if (!$request) throw new NotFound(); $options = [ 'id' => $requestId, 'strengthParams' => $strengthParams, ]; $runScript = " app.getController('PasswordChangeRequest', function (controller) { controller.doAction('passwordChange', ".json_encode($options)."); }); "; $this->getClientManager()->display($runScript); } protected function getThemeManager() { return $this->getContainer()->get('themeManager'); } }