Zend Framework

Make the first argument of Zend_Captcha_Adapter::render() optional

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.6
  • Fix Version/s: 1.8.4
  • Component/s: Zend_Captcha
  • Labels:
    None

Description

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().

<?php

$captcha = new Zend_Captcha_Dump()
$id = $captcha->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.

Activity

Hide
Michael Contento added a comment -

Patch added to provide a simple solution

Show
Michael Contento added a comment - Patch added to provide a simple solution
Hide
Stanislav Malyshev added a comment -

fixed, thanks

Show
Stanislav Malyshev added a comment - fixed, thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: