Skip to content

Commit

Permalink
rename to SwooleModule
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Dec 21, 2018
1 parent 4731749 commit d55586b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use BEAR\Package\AppInjector;
use BEAR\Resource\ResourceObject;
use BEAR\Swoole\App;
use BEAR\Swoole\Psr7SwooleModule;
use BEAR\Swoole\SwooleModule;
use BEAR\Swoole\SuperGlobals;
use Swoole\Http\Request;
use Swoole\Http\Response;
Expand All @@ -31,7 +31,7 @@
});
$injector = new AppInjector($name, $context);
/* @var App $app */
$app = $injector->getOverrideInstance(new Psr7SwooleModule, App::class);
$app = $injector->getOverrideInstance(new SwooleModule, App::class);
$superGlobals = new SuperGlobals;
$http->on('request', function (Request $request, Response $response) use ($app, $superGlobals) {
if ($app->httpCache->isNotModified($request->header)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Psr7SwooleModule.php → src/SwooleModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Ray\Di\Scope;
use Ray\HttpMessage\RequestProviderInterface;

class Psr7SwooleModule extends AbstractModule
class SwooleModule extends AbstractModule
{
protected function configure()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Psr7SwooleModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Psr7SwooleModuleTest extends TestCase
{
public function testPsr7SwooleModule()
{
$injector = new Injector(new Psr7SwooleModule);
$injector = new Injector(new SwooleModule);
$requestProvider = $injector->getInstance(SwooleRequestProvider::class);
$request = new Request;
$request->get = [];
Expand Down

0 comments on commit d55586b

Please sign in to comment.