Skip to content

Commit 8a42264

Browse files
committed
v3
1 parent 04bda0e commit 8a42264

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+108
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Sunrise\Http\Router\Command\RouterClearDescriptorsCacheCommand;
6+
use Sunrise\Http\Router\Loader\DescriptorLoaderInterface;
7+
8+
use function DI\add;
9+
use function DI\create;
10+
use function DI\get;
11+
12+
return [
13+
'app.commands' => add([
14+
create(RouterClearDescriptorsCacheCommand::class)
15+
->constructor(
16+
descriptorLoader: get(DescriptorLoaderInterface::class),
17+
),
18+
]),
19+
];
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Sunrise\Http\Router\Command\RouterListRoutesCommand;
6+
use Sunrise\Http\Router\RouterInterface;
7+
8+
use function DI\add;
9+
use function DI\create;
10+
use function DI\get;
11+
12+
return [
13+
'app.commands' => add([
14+
create(RouterListRoutesCommand::class)
15+
->constructor(
16+
router: get(RouterInterface::class),
17+
),
18+
]),
19+
];
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Sunrise\Http\Router\OpenApi\Command\RouterOpenApiBuildDocumentCommand;
6+
use Sunrise\Http\Router\OpenApi\OpenApiDocumentManagerInterface;
7+
use Sunrise\Http\Router\RouterInterface;
8+
9+
use function DI\add;
10+
use function DI\create;
11+
use function DI\get;
12+
13+
return [
14+
'app.commands' => add([
15+
create(RouterOpenApiBuildDocumentCommand::class)
16+
->constructor(
17+
router: get(RouterInterface::class),
18+
openApiDocumentManager: get(OpenApiDocumentManagerInterface::class),
19+
),
20+
]),
21+
];

src/Annotation/ApiRoute.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Attribute;
1717

1818
/**
19+
* @link https://dev.sunrise-studio.io/docs/reference/router-annotations?id=apiroute
1920
* @since 3.0.0
2021
*/
2122
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]

src/Annotation/Constraint.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Attribute;
1717

1818
/**
19+
* @link https://dev.sunrise-studio.io/docs/reference/router-annotations?id=constraint
1920
* @since 3.0.0
2021
*/
2122
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::IS_REPEATABLE)]

src/Annotation/Consumes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Sunrise\Coder\MediaTypeInterface;
1818

1919
/**
20+
* @link https://dev.sunrise-studio.io/docs/reference/router-annotations?id=consumes
2021
* @since 3.0.0
2122
*/
2223
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]

src/Annotation/DefaultAttribute.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Attribute;
1717

1818
/**
19+
* @link https://dev.sunrise-studio.io/docs/reference/router-annotations?id=defaultattribute
1920
* @since 3.0.0
2021
*/
2122
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]

src/Annotation/DeleteApiRoute.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Attribute;
1717

1818
/**
19+
* @link https://dev.sunrise-studio.io/docs/reference/router-annotations?id=deleteapiroute
1920
* @since 3.0.0
2021
*/
2122
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]

src/Annotation/DeleteMethod.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Attribute;
1717

1818
/**
19+
* @link https://dev.sunrise-studio.io/docs/reference/router-annotations?id=deletemethod
1920
* @since 3.0.0
2021
*/
2122
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]

src/Annotation/DeleteRoute.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Attribute;
1717

1818
/**
19+
* @link https://dev.sunrise-studio.io/docs/reference/router-annotations?id=deleteroute
1920
* @since 3.0.0
2021
*/
2122
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]

0 commit comments

Comments
 (0)