- UI Revamp
- Some i18n added/fixed - WIP on a new testing mechanism
This commit is contained in:
1 parent
f5014e1cee
commit
58c61a8f01
76 files changed
+1428
-313
No files matched your search
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Psr\Container\ContainerInterface;
|
||||
use Lean\Console\Lib\Testing\TestFetcher;
|
||||
use Lean\Console\Lib\DatabaseMigrations;
|
||||
|
||||
$path = dirname(__DIR__, 2);
|
||||
@@ -11,14 +13,14 @@ return [
|
||||
|
||||
'view' => [
|
||||
[
|
||||
'path' => implode(DIRECTORY_SEPARATOR, [ $path , "view", '' ]),
|
||||
'path' => Lean\Lean::path($path, 'view'),
|
||||
'order' => 99,
|
||||
],
|
||||
],
|
||||
|
||||
'asset' => [
|
||||
[
|
||||
'path' => implode(DIRECTORY_SEPARATOR, [ $path, "asset", '' ]),
|
||||
'path' => Lean\Lean::path($path, 'asset'),
|
||||
'order' => 10
|
||||
],
|
||||
],
|
||||
@@ -26,29 +28,37 @@ return [
|
||||
|
||||
'ulmus' => [
|
||||
'entities' => [
|
||||
Lean\Console\Entity\Firewall::class => implode(DIRECTORY_SEPARATOR, [ $path , "src", "Entity", "Firewall" ]),
|
||||
# Lean\Console\Entity::class => Lean\Lean::path($path, 'src', 'Entity'),
|
||||
],
|
||||
],
|
||||
|
||||
'tell' => [
|
||||
'json' => [
|
||||
[
|
||||
'path' => implode(DIRECTORY_SEPARATOR, [ $path, "meta", "i18n", "" ]),
|
||||
'path' => Lean\Lean::path($path, 'meta', 'i18n'),
|
||||
'order' => 99,
|
||||
],
|
||||
]
|
||||
],
|
||||
|
||||
'cli' => [
|
||||
'Lean\\Console\\Cli' => implode(DIRECTORY_SEPARATOR, [ $path, "src", "Cli", "" ]),
|
||||
'Lean\\Console\\Cli' => Lean\Lean::path($path, 'src', 'Cli'),
|
||||
],
|
||||
|
||||
'routes' => ! getenv('DEBUG') ? [] : [
|
||||
Lean\Console\Controller::class => implode(DIRECTORY_SEPARATOR, [ $path, "src", "Controller", "" ]),
|
||||
'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($c) {
|
||||
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'));
|
||||
},
|
||||
];
|
||||
Reference in new issue
Block a user