Issues

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

Issue Type: Improvement Created: 2012-05-15T03:41:52.000+0000 Last Updated: 2012-10-08T20:16:37.000+0000 Status: Closed Fix version(s): Reporter: simon liu (simonliu) Assignee: simon liu (simonliu) Tags: - Zend\Mvc\Router

Related issues: Attachments:

Description

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

<pre class="highlight">
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?

<pre class="highlight">
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

Posted by Ralph Schindler (ralph) on 2012-10-08T20:16:37.000+0000

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

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts