- Fixed a bug where LDAP entities were crashing the storage interface
This commit is contained in:
parent
f6fadd715e
commit
23af120020
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"lean": {
|
||||||
|
"label": "Lean",
|
||||||
|
"dashboard": "Dashboard"
|
||||||
|
},
|
||||||
|
|
||||||
|
"storage": {
|
||||||
|
"label": "Stockage",
|
||||||
|
"summary": "Sommaire",
|
||||||
|
"database": "Base de données",
|
||||||
|
"session": "Session"
|
||||||
|
},
|
||||||
|
|
||||||
|
"templating": {
|
||||||
|
"label": "Templating",
|
||||||
|
"picea": "Picea"
|
||||||
|
},
|
||||||
|
|
||||||
|
"caching": {
|
||||||
|
"label": "Caching"
|
||||||
|
},
|
||||||
|
|
||||||
|
"request": {
|
||||||
|
"label": "Request",
|
||||||
|
"routes": "Routes"
|
||||||
|
},
|
||||||
|
|
||||||
|
"email": {
|
||||||
|
"label": "Email",
|
||||||
|
"routes": "Activity"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"title": "Request -- LEAN",
|
||||||
|
"page-title": "LEAN - Request",
|
||||||
|
"route": {
|
||||||
|
"header": "List of active routes",
|
||||||
|
"name": "Name",
|
||||||
|
"uri": "URI",
|
||||||
|
"methods": "HTTP Methods",
|
||||||
|
"target": "class::method()"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -2,6 +2,6 @@
|
||||||
"title" : "Setup -- LEAN",
|
"title" : "Setup -- LEAN",
|
||||||
|
|
||||||
"breadcrumb" : {
|
"breadcrumb" : {
|
||||||
"index" : "Negundo"
|
"index" : ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"title": "Storage -- LEAN",
|
||||||
|
"page-title": "LEAN - Storage",
|
||||||
|
|
||||||
|
"database": {
|
||||||
|
"header": "List of databases",
|
||||||
|
"name": "Database",
|
||||||
|
"adapter": "Adapter",
|
||||||
|
"host": "Hostname:port",
|
||||||
|
"username": "Username",
|
||||||
|
"connection": "Connection",
|
||||||
|
|
||||||
|
"table": {
|
||||||
|
"header": "Tables details",
|
||||||
|
"fields": "{$count} fields",
|
||||||
|
"name": "Name",
|
||||||
|
"actions": "Actions",
|
||||||
|
"table-fields" : "Fields in table",
|
||||||
|
"create": "Create table",
|
||||||
|
"createAll": "Create all tables",
|
||||||
|
"query": "SQL Query"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -19,9 +19,6 @@ class Console {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Route("/", "name" => "lean.console:home")
|
* @Route("/", "name" => "lean.console:home")
|
||||||
* @param ServerRequestInterface $request
|
|
||||||
* @param array $arguments
|
|
||||||
* @return ResponseInterface
|
|
||||||
*/
|
*/
|
||||||
public function home(ServerRequestInterface $request, array $arguments) : ResponseInterface
|
public function home(ServerRequestInterface $request, array $arguments) : ResponseInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,6 +24,12 @@ class Database implements FormInterface
|
||||||
$context->tableExist = [];
|
$context->tableExist = [];
|
||||||
|
|
||||||
foreach($this->migration->entities as $entity => $table) {
|
foreach($this->migration->entities as $entity => $table) {
|
||||||
|
$tableName = $table->tableName();
|
||||||
|
$databaseName = $table->databaseName();
|
||||||
|
|
||||||
|
if ( ! $tableName || ! $databaseName ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$table = Table::repository()->where(Table::field('name'), $table->tableName())
|
$table = Table::repository()->where(Table::field('name'), $table->tableName())
|
||||||
->where(Table::field('schema'), $table->databaseName())
|
->where(Table::field('schema'), $table->databaseName())
|
||||||
|
|
|
@ -22,6 +22,11 @@ class DatabaseMigrations
|
||||||
$name = $file->getBasename("." . $file->getExtension());
|
$name = $file->getBasename("." . $file->getExtension());
|
||||||
$subNs = substr($file->getPath(), strlen($folder));
|
$subNs = substr($file->getPath(), strlen($folder));
|
||||||
$entity = rtrim($namespace, "\\") . ( $subNs ? "\\$subNs" : "" ) . "\\{$name}";
|
$entity = rtrim($namespace, "\\") . ( $subNs ? "\\$subNs" : "" ) . "\\{$name}";
|
||||||
|
|
||||||
|
if ( ! method_exists($entity, 'resolveEntity') ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$this->entities[$entity] = $entity::resolveEntity();
|
$this->entities[$entity] = $entity::resolveEntity();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue