<?php

declare(strict_types=1);

return [
    'id' => 'skillparts-console',
    'basePath' => dirname(__DIR__),
    'bootstrap' => ['log'],
    'controllerNamespace' => 'app\commands',
    'aliases' => [
        '@vendor'       => dirname(__DIR__) . '/../../../vendor',
        '@bower'        => '@vendor/bower-asset',
        '@npm'          => '@vendor/npm-asset',
        '@tests'        => '@app/tests',
    ],
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        'log' => [
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],
        'arangodb' => require __DIR__ . '/db.php'
    ],
    'params' => require __DIR__ . '/params.php',
    'controllerMap' => [
        'arangodb-migrate' => 'mirzaev\yii2\arangodb\console\controllers\MigrateController',
        'fixture' => [
            'class' => 'yii\faker\FixtureController',
        ],
    ]
];