Skip to content

Commit e7d38a6

Browse files
committed
Renamed from CallableMiddleware to Inline
1 parent eb310f4 commit e7d38a6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
namespace Stack;
44

5-
use Closure;
65
use Symfony\Component\HttpFoundation\Request;
76
use Symfony\Component\HttpKernel\HttpKernelInterface;
87

9-
class CallableMiddleware implements HttpKernelInterface
8+
class Inline implements HttpKernelInterface
109
{
1110
private $app;
1211
private $callable;

tests/functional/CallableMiddlewareTest.php renamed to tests/functional/InlineTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
namespace functional;
44

55
use Stack\CallableHttpKernel;
6-
use Stack\CallableMiddleware;
6+
use Stack\Inline;
77
use Symfony\Component\HttpFoundation\Request;
88
use Symfony\Component\HttpFoundation\Response;
99
use Symfony\Component\HttpKernel\Client;
1010
use Symfony\Component\HttpKernel\HttpKernelInterface;
1111

12-
class CallableMiddlewareTest extends \PHPUnit_Framework_TestCase
12+
class InlineTest extends \PHPUnit_Framework_TestCase
1313
{
1414
public function testSomething()
1515
{
@@ -21,7 +21,7 @@ public function testSomething()
2121
return new Response('FAILED', 500);
2222
});
2323

24-
$app = new CallableMiddleware($app, function(HttpKernelInterface $app, Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) {
24+
$app = new Inline($app, function(HttpKernelInterface $app, Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) {
2525
$request->attributes->set('callable_middleware', 'success');
2626

2727
$response = $app->handle($request, $type, $catch);

0 commit comments

Comments
 (0)