getConfig(); $themeManager = $this->getThemeManager(); $p = $this->getEntityManager()->getRepository('PasswordChangeRequest')->where(array( 'requestId' => $requestId ))->findOne(); if (!$p) { throw new NotFound(); } $runScript = " app.getController('PasswordChangeRequest', function (controller) { controller.doAction('passwordChange', '{$requestId}'); }); "; $this->getClientManager()->display($runScript); } protected function getThemeManager() { return $this->getContainer()->get('themeManager'); } }