- WIP on CLI
This commit is contained in:
1 parent
73fca52013
commit
0b1286c05f
7 files changed
+277
-12
No files matched your search
@@ -27,7 +27,7 @@ class Storage extends Console {
|
||||
$migrations = $this->container->has(Lib\DatabaseMigrations::class) ? $this->container->get(Lib\DatabaseMigrations::class) : false;
|
||||
$migrations->getEntities();
|
||||
|
||||
$context = (new FormHandler($request, new Form\Storage\DatabaseMigration($migrations)))->context;
|
||||
$context = (new FormHandler($request, new Form\Storage\Database\Migrate($migrations)))->context;
|
||||
|
||||
return $this->renderView("lean-console/page/storage/database", get_defined_vars());
|
||||
}
|
||||
@@ -39,7 +39,7 @@ class Storage extends Console {
|
||||
$migrations = $this->container->has(Lib\DatabaseMigrations::class) ? $this->container->get(Lib\DatabaseMigrations::class) : false;
|
||||
$migrations->getEntities();
|
||||
|
||||
$form = new Form\Storage\DatabaseImport($migrations, $connections);
|
||||
$form = new Form\Storage\Database\Import($migrations, $connections);
|
||||
|
||||
$context = (new FormHandler($request, $form, $this->pushContext(new Lib\FormContext($request, "database.import"))))->context;
|
||||
|
||||
@@ -74,12 +74,4 @@ class Storage extends Console {
|
||||
{
|
||||
return rtrim(ini_get("session.save_path"), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
|
||||
}
|
||||
|
||||
public function createTable() : void
|
||||
{
|
||||
foreach($migrations->entities as $table) {
|
||||
// $repository = $table
|
||||
// $entity::repository()->createTable();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user