protected function error($options)
    {
        /* @var \Gregwar\CaptchaBundle\Generator\CaptchaGenerator $generator */
        $generator = $this->container->get('gregwar_captcha.generator');
        $generator->setPhrase('');

        $response = new Response($generator->generate($options));
        $response->setStatusCode(428);
        $response->headers->set('Content-type', 'image/jpeg');
        $response->headers->set('Pragma', 'no-cache');
        $response->headers->set('Cache-Control', 'no-cache');

        return $response;
    }
protected function error($options)
    {
        /* @var \Gregwar\CaptchaBundle\Generator\CaptchaGenerator $generator */
        $generator = $this->container->get('gregwar_captcha.generator');
        $generator->setPhrase('');

        $response = new Response($generator->generate($options));
        $response->setStatusCode(428);
        $response->headers->set('Content-type', 'image/jpeg');
        $response->headers->set('Pragma', 'no-cache');
        $response->headers->set('Cache-Control', 'no-cache');

        return $response;
    }
protected function error ( $ options ) { /* @var \Gregwar\CaptchaBundle\Generator\CaptchaGenerator $generator */ $ generator = $ this -> container -> get ( 'gregwar_captcha.generator' ) ; $ generator -> setPhrase ( '' ) ; $ response = new Response ( $ generator -> generate ( $ options ) ) ; $ response -> setStatusCode ( 428 ) ; $ response -> headers -> set ( 'Content-type' , 'image/jpeg' ) ; $ response -> headers -> set ( 'Pragma' , 'no-cache' ) ; $ response -> headers -> set ( 'Cache-Control' , 'no-cache' ) ; return $ response ; }
Returns an empty image with status code 428 Precondition Required

@param array $options

@return Response
Returns an empty image with status code 428 Precondition Required