diff options
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/Commands/Checks/HelpTours.php | 4 | ||||
| -rwxr-xr-x | cli/studip | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cli/Commands/Checks/HelpTours.php b/cli/Commands/Checks/HelpTours.php index 309dfda..b0c201a 100644 --- a/cli/Commands/Checks/HelpTours.php +++ b/cli/Commands/Checks/HelpTours.php @@ -59,7 +59,7 @@ class HelpTours extends Command $plugin = new $plugin_info['class'](); if ($result[1]) { - $dispatcher = studipApp(\Trails\Dispatcher::class); + $dispatcher = app(\Trails\Dispatcher::class); $dispatcher->trails_root = $GLOBALS['ABSOLUTE_PATH_STUDIP'] . $plugin->getPluginPath(); $dispatcher->trails_uri = rtrim(\PluginEngine::getLink($plugin, [], null, true), '/'); $dispatcher->default_controller = 'index'; @@ -71,7 +71,7 @@ class HelpTours extends Command } } } elseif (match_route('dispatch.php/*', $step->route)) { - $dispatcher = studipApp(\Trails\Dispatcher::class); + $dispatcher = app(\Trails\Dispatcher::class); $parsed = $dispatcher->parse(substr($step->route, strlen('dispatch.php') + 1)); $controller = $dispatcher->load_controller($parsed[0]); if ($parsed[1] && !$controller->has_action($parsed[1])) { @@ -18,7 +18,7 @@ $application->run(); function loadCoreCommands(): array { $commands = require __DIR__ . '/commands.php'; - return array_map(fn($command) => studipApp($command), $commands); + return array_map(fn($command) => app($command), $commands); } function loadPluginCommands(Application $application): array @@ -77,7 +77,7 @@ function getPluginCommands(Application $application, array $manifest): array foreach ($commandsFn($application) as $class => $path) { require_once $path; - $commands[] = studipApp($class); + $commands[] = app($class); } return $commands; |
