Skip to content

Commit 3ed3e9c

Browse files
author
Dominik Zogg
committed
chubbyphp-framework 3.1
1 parent cb4f822 commit 3ed3e9c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Symfony Router implementation for [chubbyphp-framework][1].
1414
## Requirements
1515

1616
* php: ^7.2
17-
* [chubbyphp/chubbyphp-framework][1]: ^3.0
17+
* [chubbyphp/chubbyphp-framework][1]: ^3.1
1818
* [symfony/expression-language][2]: ^4.3|^5.0
1919
* [symfony/routing][3]: ^4.3|^5.0
2020

@@ -63,7 +63,7 @@ $app = new Application([
6363

6464
return $response;
6565
}
66-
))->pathOptions([SymfonyRouter::PATH_REQUIREMENTS => ['name' => '[a-z]+']])
66+
), [], [SymfonyRouter::PATH_REQUIREMENTS => ['name' => '[a-z]+']])
6767
]), $responseFactory),
6868
]);
6969

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"require": {
1717
"php": "^7.2",
18-
"chubbyphp/chubbyphp-framework": "^3.0",
18+
"chubbyphp/chubbyphp-framework": "^3.1",
1919
"symfony/expression-language": "^4.3|^5.0",
2020
"symfony/routing": "^4.3|^5.0"
2121
},

tests/Integration/RouterTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function (ServerRequestInterface $request) use ($responseFactory) {
8080

8181
return $response;
8282
}
83-
))->pathOptions(['requirements' => ['name' => '[a-z]+']]);
83+
), [], ['requirements' => ['name' => '[a-z]+']]);
8484

8585
$app = new Application([
8686
new ExceptionMiddleware($responseFactory, true),
@@ -113,7 +113,7 @@ function (ServerRequestInterface $request) use ($responseFactory) {
113113

114114
return $response;
115115
}
116-
))->pathOptions(['requirements' => ['name' => '[a-z]+']]);
116+
), [], ['requirements' => ['name' => '[a-z]+']]);
117117

118118
$app = new Application([
119119
new ExceptionMiddleware($responseFactory, true),
@@ -149,7 +149,7 @@ function (ServerRequestInterface $request) use ($responseFactory) {
149149

150150
return $response;
151151
}
152-
))->pathOptions(['requirements' => ['name' => '[a-z]+']]);
152+
), [], ['requirements' => ['name' => '[a-z]+']]);
153153

154154
$app = new Application([
155155
new ExceptionMiddleware($responseFactory, true),
@@ -181,7 +181,7 @@ public function testException(
181181
function (): void {
182182
throw new \RuntimeException('Something went wrong');
183183
}
184-
))->pathOptions(['requirements' => ['name' => '[a-z]+']]);
184+
), [], ['requirements' => ['name' => '[a-z]+']]);
185185

186186
$app = new Application([
187187
new ExceptionMiddleware($responseFactory, true),
@@ -217,7 +217,7 @@ public function testExceptionWithoutExceptionMiddleware(
217217
function (): void {
218218
throw new \RuntimeException('Something went wrong');
219219
}
220-
))->pathOptions(['requirements' => ['name' => '[a-z]+']]);
220+
), [], ['requirements' => ['name' => '[a-z]+']]);
221221

222222
$app = new Application([
223223
new RouterMiddleware(new Router([$route]), $responseFactory),
@@ -235,7 +235,7 @@ public function testGeneratePath(): void
235235
{
236236
$route = Route::get('/hello/{name}', 'hello', new CallbackRequestHandler(
237237
function (): void {}
238-
))->pathOptions(['requirements' => ['name' => '[a-z]+']]);
238+
), [], ['requirements' => ['name' => '[a-z]+']]);
239239

240240
$router = new Router([$route]);
241241

0 commit comments

Comments
 (0)