1583. Class

1583.1. Zend\Mvc\Router\RoutePluginManager

Plugin manager implementation for routes

Enforces that routes retrieved are instances of RouteInterface. It overrides createFromInvokable() to call the route’s factory method in order to get an instance. The manager is marked to not share by default, in order to allow multiple route instances of the same type.

1583.1.1. Methods

1583.1.1.1. validatePlugin

validatePlugin()

Validate the plugin

Checks that the filter loaded is either a valid callback or an instance of FilterInterface.

Parameters:mixed
Return type:void
Throws :ExceptionRuntimeException if invalid

1583.1.1.2. createFromInvokable

createFromInvokable()

Attempt to create an instance via an invokable class

Overrides parent implementation by invoking the route factory, passing $creationOptions as the argument.

Parameters:
  • string
  • string
Return type:

null|stdClass

Throws :

ExceptionRuntimeException If resolved class does not exist, or does not implement RouteInterface

Project Versions

Table Of Contents

Previous topic

1582. Class

Next topic

1584. Function

This Page