20240412#1
This commit is contained in:
@@ -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\*RepositoryInterface' => DI\autowire('App\*\Repository\Mysql\*Repository'),
|
||||
'App\*\Domain\Repository\*Repository\*RepositoryInterface' => DI\autowire('App\*\Repository\Mysql\*Repository'),
|
||||
];
|
||||
@@ -1,2 +1,2 @@
|
||||
<?php
|
||||
return (new \Rmphp\Content\Content('templates/base.tpl'))->setSubtemplePath('templates');
|
||||
return (new \Rmphp\Content\Content('/templates/base.tpl'))->setSubtemplatePath('/templates');
|
||||
@@ -2,15 +2,14 @@
|
||||
|
||||
/**
|
||||
* Правила для точек монтирования модулей
|
||||
* Каждый массив определяет порядок срабатывания, часть url с которого
|
||||
*/
|
||||
|
||||
# Example:
|
||||
# ['key'=>'/', "action"=>"App\\Main\\Controllers\\IndexController", "method"=>"index"],
|
||||
# ['key'=>'/', 'router'=>'config/routes/main/routes.php'],
|
||||
# ['key'=>'/', 'router'=>'config/routes/main.yaml'],
|
||||
# ['key'=>'/', 'router'=>[]],
|
||||
|
||||
return [
|
||||
['key'=>'/', 'router'=>'config/routes/main.yaml'],
|
||||
['key'=>'/', 'router'=>'config/routes/main/routes.php'],
|
||||
];
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
- key: "/"
|
||||
routes:
|
||||
- action: "App\\Main\\Controllers\\IndexController"
|
||||
method: "index"
|
||||
params: ""
|
||||
|
||||
# Empty
|
||||
- key: "[any]"
|
||||
routes:
|
||||
- action: "App\\Main\\Controllers\\IndexController"
|
||||
method: "emptyAction"
|
||||
params: ""
|
||||
@@ -6,7 +6,7 @@
|
||||
params: ""
|
||||
|
||||
# Empty
|
||||
- key: "[any]"
|
||||
- key: "<@any>"
|
||||
routes:
|
||||
- action: "App\\Main\\Controllers\\IndexController"
|
||||
method: "emptyAction"
|
||||
|
||||
Reference in New Issue
Block a user