Issues

ZF2-302: Zend\Mvc\Router\RouteInterface is not graceful

Description

the definition of RouteInterface contains a static method, it' not graceful.


interface RouteInterface
{
    /**
     * Priority used for route stacks.
     *
     * @var integer
     * public $priority;
     */

    /**
     * Create a new route with given options.
     *
     * @param  array|\Traversable $options
     * @return void
     */
    public static function factory($options = array());

should we modify it like this?


interface RouteInterface
{
    /**
     * Priority used for route stacks.
     *
     * @var integer
     * public $priority;
     */

    /**
     * configure route with given options.
     *
     * @param  array|\Traversable $options
     * @return void
     */
    public function configure($options = array());

Comments

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2481