get(StudIPPlugin::class); $plugin->perform($unconsumedPath); $dispatcher = $this->get(PluginDispatcher::class); $handler = $dispatcher->getRouteCallable($unconsumedPath); return $handler($request, $response, $args); } catch (UnknownAction $exception) { $args = explode('/', $unconsumedPath); if ($args[0] !== '') { $args = array_slice($args, 1); } throw count($args) ? $exception : new Exception(_('unbekannte Plugin-Aktion: ') . $unconsumedPath); } }; } }