You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use namespaces for multiple countries and use the country to setup a service.
$klein->with("/[at|de:country]", function () use ($klein) {
// catch all (not called)$klein->respond(function($request, $response, $service, $app) {
// create service based on $request->country
});
// specific route, is called$klein->respond("articles", function($request, $response, $service, $app) {
});
});
But the catch all route is never called. If I use $klein->with("/at", function () {});, the catch all route is called as well.
Does klein support using the OR operator for namespaces?
The text was updated successfully, but these errors were encountered:
I am trying to use namespaces for multiple countries and use the country to setup a service.
But the catch all route is never called. If I use
$klein->with("/at", function () {});
, the catch all route is called as well.Does klein support using the OR operator for namespaces?
The text was updated successfully, but these errors were encountered: