Release 0.255: migrate remaining Languages usages to repository DI

This commit is contained in:
2026-02-12 22:28:57 +01:00
parent 95c5fda989
commit 58a41691e6
25 changed files with 95 additions and 44 deletions

View File

@@ -26,7 +26,7 @@ class ShopProducer
{
return \Tpl::view( 'shop-producer/edit', [
'producer' => \S::get( 'id' ) ? new \shop\Producer( \S::get( 'id' ) ) : null,
'languages' => \admin\factory\Languages::languages_list()
'languages' => ( new \Domain\Languages\LanguagesRepository( $GLOBALS['mdb'] ) )->languagesList()
] );
}
@@ -34,4 +34,4 @@ class ShopProducer
{
return \Tpl::view( 'shop-producer/list' );
}
}
}