Skip to content

Commit

Permalink
Merge pull request #156 from bearsunday/deprecated-app
Browse files Browse the repository at this point in the history
Deprecate App and AppModule
  • Loading branch information
koriym authored Mar 17, 2021
2 parents 5a80056 + 94a4a5e commit 9f66ddc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"require": {
"php": "^7.2 || ^8.0",
"ext-json": "*",
"bear/resource": "^1.15.1",
"bear/resource": "^1.15.4",
"doctrine/annotations": "^1.12",
"doctrine/cache": "^1.10",
"psr/log": "^1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use BEAR\Sunday\Extension\Application\AbstractApp;

/**
* @deprecated
*/
class App extends AbstractApp
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use BEAR\Sunday\Extension\Application\AppInterface;
use Ray\Di\AbstractModule;

/**
* @deprecated
*/
class AppModule extends AbstractModule
{
protected function configure(): void
Expand Down
4 changes: 1 addition & 3 deletions src/Module/SundayModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use BEAR\Resource\Module\ResourceModule;
use BEAR\Sunday\Module\Cache\DoctrineCacheModule;
use BEAR\Sunday\Provide\Application\AppModule;
use BEAR\Sunday\Provide\Error\ErrorModule;
use BEAR\Sunday\Provide\Router\RouterModule;
use BEAR\Sunday\Provide\Transfer\HttpCacheModule;
Expand All @@ -17,10 +16,9 @@ class SundayModule extends AbstractModule
{
protected function configure(): void
{
$this->install(new AppModule());
$this->install(new HttpCacheModule());
$this->install(new DoctrineCacheModule());
$this->install(new ResourceModule('BEAR\Sunday'));
$this->install(new ResourceModule());
$this->install(new RouterModule());
$this->install(new HttpResponderModule());
$this->install(new ErrorModule());
Expand Down

0 comments on commit 9f66ddc

Please sign in to comment.