ZF-6045: Make the first argument of Zend_Captcha_Adapter::render() optional

Issue Type: Improvement Created: 2009-03-17T03:08:03.000+0000 Last Updated: 2009-06-17T14:45:25.000+0000 Status: Resolved Fix version(s): - 1.8.4 (23/Jun/09)

Reporter: Michael Contento (kaffeefleck) Assignee: Stanislav Malyshev (stas) Tags: - Zend_Captcha

Related issues: Attachments: - patch.diff


I like to integrate Zend_Captcha in an old project - but i need to create an instance of Zend_View only to fit the first argument of Zend_Captcha_Adapter::render().

generate(); echo $captcha->render(new Zend\_View()); ?> Would it not be better, to make the first argument optional? Currently no adapter use the first argument! Future one might - but they can check this and throw an exception if its not present.


Posted by Michael Contento (kaffeefleck) on 2009-04-29T00:11:38.000+0000

Patch added to provide a simple solution

Posted by Stanislav Malyshev (stas) on 2009-06-17T14:45:25.000+0000

fixed, thanks

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.