Issues

ZF-8537: Zend_Rest_Router must implements static method getInstance

Description

Sorry for my crappy english!

I use ini file to configure the router.

routes.foobar.type = "Zend_Rest_Route"

The rewrite router will try to instanciate Zend_Rest_Route calling

$route = call_user_func(array($class, 'getInstance'), $info);

It will call the static method getInstance of Zend_Rest_Route superclass and return a instance of Zend_Controller_Router_Route_Module

It can be fixed easily, only need to override getInstance method himself, and return a Zend_Rest_Route instance.

We can use late static binding too, but php 5.3 will be required :D !

My regards!

Comments

Committed code. Need to update documentation to show config ini usage.