20240502#1

This commit is contained in:
User
2024-05-02 11:29:58 +03:00
parent 88b597d78d
commit e03c9bccfc
31 changed files with 208 additions and 147 deletions

View File

@@ -11,5 +11,5 @@ return [
MysqlStorageInterface::class => DI\create(MysqlStorage::class)->constructor(json_decode(getenv("MYSQL_PARAM"), true)),
SessionInterface::class => DI\create(Session::class)->constructor(),
CacheInterface::class => DI\create(Cache::class)->constructor("../var/cache"),
'App\*\Domain\Repository\*Repository\*RepositoryInterface' => DI\autowire('App\*\Repository\Mysql\*Repository'),
'App\*\Domain\Repository\*RepositoryInterface' => DI\autowire('App\*\Infrastructure\Repository\*Repository'),
];

View File

@@ -1,2 +1,4 @@
<?php
return (new \Rmphp\Content\Content('/templates/base.tpl'))->setSubtemplatePath('/templates');
return (new \Rmphp\Content\Content('/application/src/Presentation/templates/base.tpl'))->setSubtemplatePath('/application/src/Presentation/templates/')->setSubtemplatePathAlias([
"main" => "/src/Main/Presentation/templates",
]);

View File

@@ -1,13 +1,13 @@
# Index
- key: "/"
routes:
- action: "App\\Main\\Controllers\\IndexController"
- action: "App\\Main\\Presentation\\Controllers\\IndexController"
method: "index"
params: ""
# Empty
- key: "<@any>"
routes:
- action: "App\\Main\\Controllers\\IndexController"
- action: "App\\Main\\Presentation\\Controllers\\IndexController"
method: "emptyAction"
params: ""