refactor layouts module to domain/di and prepare 0.256 release

This commit is contained in:
2026-02-12 22:54:47 +01:00
parent 58a41691e6
commit b0a2f4be0e
24 changed files with 970 additions and 315 deletions

View File

@@ -207,7 +207,8 @@ class Site
return new \admin\Controllers\ArticlesController(
new \Domain\Article\ArticleRepository( $mdb ),
new \Domain\Languages\LanguagesRepository( $mdb )
new \Domain\Languages\LanguagesRepository( $mdb ),
new \Domain\Layouts\LayoutsRepository( $mdb )
);
},
'Banners' => function() {
@@ -266,6 +267,14 @@ class Site
new \Domain\Languages\LanguagesRepository( $mdb )
);
},
'Layouts' => function() {
global $mdb;
return new \admin\Controllers\LayoutsController(
new \Domain\Layouts\LayoutsRepository( $mdb ),
new \Domain\Languages\LanguagesRepository( $mdb )
);
},
];
return self::$newControllers;
@@ -309,6 +318,9 @@ class Site
'unit_edit' => 'edit',
'unit_save' => 'save',
'unit_delete' => 'delete',
'layout_edit' => 'edit',
'layout_save' => 'save',
'layout_delete' => 'delete',
];
public static function route()