- override
Incorporates another Routable
's routes into this one's.
If hooked
is set to true
and a Service
is provided,
then that service will be wired to a HookedService
proxy.
If a middlewareNamespace
is provided, then any middleware
from the provided Routable
will be prefixed by that namespace,
with a dot.
For example, if the Routable
has a middleware 'y', and the middlewareNamespace
is 'x', then that middleware will be available as 'x.y' in the main application.
These namespaces can be nested.
Source
@override
use(Pattern path, Routable routable,
{bool hooked: true, String middlewareNamespace: null}) {
if (routable is Service) {
routable.app = this;
}
super.use(path, routable,
hooked: hooked, middlewareNamespace: middlewareNamespace);
}