64 lines
1.7 KiB
PHP
64 lines
1.7 KiB
PHP
<?php
|
|
|
|
use Psr\Container\ContainerInterface;
|
|
use Lean\Console\Lib\Testing\TestFetcher;
|
|
use Lean\Console\Lib\DatabaseMigrations;
|
|
|
|
$path = dirname(__DIR__, 2);
|
|
|
|
return [
|
|
'lean.console' => [
|
|
'picea' => [
|
|
'context' => Lean\Console\View::class,
|
|
|
|
'view' => [
|
|
[
|
|
'path' => Lean\Lean::path($path, 'view'),
|
|
'order' => 99,
|
|
],
|
|
],
|
|
|
|
'asset' => [
|
|
[
|
|
'path' => Lean\Lean::path($path, 'asset'),
|
|
'order' => 10
|
|
],
|
|
],
|
|
],
|
|
|
|
'ulmus' => [
|
|
'entities' => [
|
|
# Lean\Console\Entity::class => Lean\Lean::path($path, 'src', 'Entity'),
|
|
],
|
|
],
|
|
|
|
'tell' => [
|
|
'json' => [
|
|
[
|
|
'path' => Lean\Lean::path($path, 'meta', 'i18n'),
|
|
'order' => 99,
|
|
],
|
|
]
|
|
],
|
|
|
|
'cli' => [
|
|
'Lean\\Console\\Cli' => Lean\Lean::path($path, 'src', 'Cli'),
|
|
],
|
|
|
|
'tests' => [
|
|
Lean\Console\Controller::class => Lean\Lean::path($path, 'src', 'Controller'),
|
|
],
|
|
|
|
'routes' => [
|
|
Lean\Console\Controller::class => Lean\Lean::path($path, 'src', 'Controller'),
|
|
],
|
|
],
|
|
|
|
DatabaseMigrations::class => function(ContainerInterface $c) {
|
|
return new DatabaseMigrations( $c->get(Lean\Lean::class)->getEntities() );
|
|
},
|
|
|
|
TestFetcher::class => function(ContainerInterface $c) {
|
|
return new TestFetcher($c->get(Lean\Lean::class)->getTests(), null, $c->get('routes.caching'));
|
|
},
|
|
]; |