2021-01-21 20:59:00 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Lean\Console\Lib\DatabaseMigrations;
|
|
|
|
|
2023-10-30 15:24:12 +00:00
|
|
|
$path = dirname(__DIR__, 2);
|
|
|
|
|
2021-01-21 20:59:00 +00:00
|
|
|
return [
|
|
|
|
'lean.console' => [
|
|
|
|
'picea' => [
|
2023-10-30 15:24:12 +00:00
|
|
|
'context' => Lean\Console\View::class,
|
2022-11-29 19:29:15 +00:00
|
|
|
|
2021-01-21 20:59:00 +00:00
|
|
|
'view' => [
|
|
|
|
[
|
2023-10-30 15:24:12 +00:00
|
|
|
'path' => implode(DIRECTORY_SEPARATOR, [ $path , "view", '' ]),
|
2021-01-21 20:59:00 +00:00
|
|
|
'order' => 99,
|
|
|
|
],
|
|
|
|
],
|
2023-10-30 15:24:12 +00:00
|
|
|
|
|
|
|
'asset' => [
|
|
|
|
[
|
|
|
|
'path' => implode(DIRECTORY_SEPARATOR, [ $path, "asset", '' ]),
|
|
|
|
'order' => 10
|
|
|
|
],
|
|
|
|
],
|
2021-01-21 20:59:00 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'ulmus' => [],
|
|
|
|
|
|
|
|
'tell' => [
|
|
|
|
'json' => [
|
|
|
|
[
|
2023-10-30 15:24:12 +00:00
|
|
|
'path' => implode(DIRECTORY_SEPARATOR, [ $path, "meta", "i18n", "" ]),
|
2021-01-21 20:59:00 +00:00
|
|
|
'order' => 99,
|
|
|
|
],
|
|
|
|
]
|
|
|
|
],
|
|
|
|
|
|
|
|
'routes' => [
|
2023-10-30 15:24:12 +00:00
|
|
|
'Lean\\Console\\Controller' => implode(DIRECTORY_SEPARATOR, [ $path, "src", "Controller", "" ]),
|
2021-01-21 20:59:00 +00:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
DatabaseMigrations::class => function($c) {
|
|
|
|
return new DatabaseMigrations( $c->get(Lean\Lean::class)->getEntities() );
|
|
|
|
},
|
|
|
|
];
|