/**
* Index action method
*
* Creates the captcha images and delivers it as a PNG
* with the proper HTTP header.
*/
public function indexAction() { $captchaRepository =
$this->container->
get('shopware.captcha.repository'
);
$captcha =
$captchaRepository->
getConfiguredCaptcha();
$captchaName =
$captcha->
getName();
$this->
View()->
loadTemplate(sprintf('widgets/captcha/%s.tpl',
$captchaName));
$this->
View()->
assign($captcha->
getTemplateData());
} /**
* Assigns a captcha by the passed name in the request to the view.
* If no name assign noCaptcha
*/
public function getCaptchaByNameAction() {