lean-console/meta/definitions/software.php

46 lines
1.1 KiB
PHP
Raw Normal View History

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