4 Commits
1.1 ... 2.1

Author SHA1 Message Date
User
7df5be904f 20231007#1 2023-10-07 23:11:28 +03:00
User
34de164e72 20230926#2 2023-09-26 21:50:53 +03:00
User
19731cb6fe 20230926#1 2023-09-26 16:50:06 +03:00
User
4c087a156b 20230926#1 2023-09-26 16:49:41 +03:00
6 changed files with 5 additions and 21 deletions

View File

@@ -7,6 +7,7 @@ Stable version
```bash ```bash
composer create-project rmphp/skeleton composer create-project rmphp/skeleton
``` ```
```bash ```bash
composer create-project rmphp/skeleton:"^1.0" composer create-project rmphp/skeleton:"^2.0"
``` ```

View File

@@ -12,9 +12,9 @@
"monolog/monolog": "^2.3", "monolog/monolog": "^2.3",
"php-di/php-di": "^6.3", "php-di/php-di": "^6.3",
"symfony/dotenv": "^6.2", "symfony/dotenv": "^6.2",
"rmphp/kernel": "^1.0", "rmphp/kernel": "^2.0",
"rmphp/router": "^1.0", "rmphp/router": "^1.0",
"rmphp/content": "^1.0", "rmphp/content": "^2.0",
"rmphp/storage": "^1.0" "rmphp/storage": "^1.0"
}, },
"autoload": { "autoload": {
@@ -30,6 +30,7 @@
"process-timeout":0 "process-timeout":0
}, },
"require-dev": { "require-dev": {
"symfony/var-dumper": "^5.3",
"rmphp/var-damper": "^1.0" "rmphp/var-damper": "^1.0"
} }
} }

View File

@@ -6,6 +6,4 @@ use Rmphp\Storage\MysqlStorageInterface;
return [ return [
MysqlStorageInterface::class => DI\create(MysqlStorage::class)->constructor(json_decode(getenv("MYSQL_PARAM"), true)), MysqlStorageInterface::class => DI\create(MysqlStorage::class)->constructor(json_decode(getenv("MYSQL_PARAM"), true)),
'App\*\Domain\Repository\*RepositoryInterface' => DI\autowire('App\*\Repository\Mysql\*Repository'), 'App\*\Domain\Repository\*RepositoryInterface' => DI\autowire('App\*\Repository\Mysql\*Repository'),
'App\*\Services\*\*Service' => DI\autowire('App\*\Services\*\*Service'),
'App\*\Services\*Service' => DI\autowire('App\*\Services\*Service'),
]; ];

View File

@@ -13,22 +13,6 @@ use Rmphp\Kernel\Main;
abstract class AbstractController extends Main { abstract class AbstractController extends Main {
/**
* @param string $name
* @return mixed|void
*/
public function containerGet(string $name) {
try {
return $this->container()->get($name);
}
catch (NotFoundExceptionInterface $notFoundException){
$this->syslogger()->error($notFoundException->getMessage());
}
catch (ContainerExceptionInterface $containerException){
$this->syslogger()->error($containerException->getMessage());
}
}
/** /**
* @param \Throwable $throwable * @param \Throwable $throwable
* @param array $data * @param array $data