-
Notifications
You must be signed in to change notification settings - Fork 690
Expand file tree
/
Copy pathapp.console.php
More file actions
33 lines (31 loc) · 943 Bytes
/
app.console.php
File metadata and controls
33 lines (31 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
use craft\console\Application;
use Symfony\Component\VarDumper\Dumper\CliDumper;
use yii\console\Controller;
return [
'class' => Application::class,
'bootstrap' => [
'queue',
],
'components' => [
'dumper' => function() {
$dumper = new CliDumper();
$dumper->setColors(Craft::$app->controller instanceof Controller && Craft::$app->controller->isColorEnabled());
return $dumper;
},
'errorHandler' => [
'class' => craft\console\ErrorHandler::class,
],
'request' => [
'class' => craft\console\Request::class,
'isConsoleRequest' => true,
],
'user' => [
'class' => craft\console\User::class,
],
],
'controllerMap' => [
'migrate' => craft\console\controllers\MigrateController::class,
],
'controllerNamespace' => 'craft\\console\\controllers',
];