aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorMurtaza Sultani <sultani@data-quest.de>2026-03-09 11:29:08 +0100
committerMurtaza Sultani <sultani@data-quest.de>2026-03-09 11:29:15 +0100
commitfd87882f00562bb451f6d3bdd2545a1d38222158 (patch)
treef8291db26d2f8ea796049a84d6e5e654e69e3ef8 /cli
parenta882a47291cc8955fb622eab1b8296f4f086c116 (diff)
Rename studipApp back to appeloquent-demo
Diffstat (limited to 'cli')
-rw-r--r--cli/Commands/Checks/HelpTours.php4
-rwxr-xr-xcli/studip4
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])) {
diff --git a/cli/studip b/cli/studip
index a70492f..784bacb 100755
--- a/cli/studip
+++ b/cli/studip
@@ -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;