Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

zend-router 3.0.0

Compare
Choose a tag to compare
@weierophinney weierophinney released this 21 Mar 13:46
· 142 commits to master since this release

First release as standalone package in its own namespace. This is the first version that will be used with zend-mvc v3; see its migration document for details on how to update existing routing to this version.

In particular, the Zend\Mvc\Router namespace was renamed to Zend\Router.

Added

  • #2 adds ConfigProvider, which is an invokable class that returns dependency configuration for the component; in particular, this will be useful for zend-expressive-zendrouter.
  • #2 adds the Module class, for use with zend-mvc + zend-modulemanager. It provides dependency configuration for the component when used in that context.
  • #2 adds zend-component-installer configuration for the above ConfigProvider and Module, to allow auto-registration with the application.
  • #2 adds the following factories:
    • Zend\Router\RouteInvokableFactory, which provides a custom "invokable" factory for routes that uses the route class' factory() method for instantiation.
    • Zend\Router\RoutePluginManagerFactory, for creating a RoutePluginManager instance.
    • Zend\Router\Http\HttpRouterFactory, for returning a TreeRouteStack instance.
    • Zend\Router\RouterFactory, which essentially proxies to Zend\Router\Http\HttpRouterFactory.

Deprecated

  • Nothing.

Removed

  • #2 removes all console-related routing. These will be part of a new component, zend-mvc-console.
  • #2 removes the Query route, as it had been deprecated starting with version 2.3.

Fixed

  • Nothing.