Skip to content

Commit 812ccd8

Browse files
authored
Merge pull request #60 from davwheat/patch-1
docs: stray semicolon, add import
2 parents 869026f + ee9aa55 commit 812ccd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/extensions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ You must return your extension's unique URI from `uri`.
1111
For every request that includes your extension in the media type, the `handle` method will be called. If your extension is able to handle the request, it should return a PSR-7 response. Otherwise, return null to let the normal handling of the request take place.
1212

1313
```php
14+
use Tobyz\JsonApiServer\Context;
1415
use Tobyz\JsonApiServer\Extension\Extension;
1516
use Psr\Http\Message\ResponseInterface;
1617

@@ -23,7 +24,7 @@ class MyExtension extends Extension
2324
return 'https://example.org/my-extension';
2425
}
2526

26-
public function handle(Context $context): ?ResponseInterface;
27+
public function handle(Context $context): ?ResponseInterface
2728
{
2829
if ($context->getPath() === '/my-extension') {
2930
return json_api_response([

0 commit comments

Comments
 (0)