generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from rico/main
Allow to register multiple Get route declarations on one method
- Loading branch information
Showing
18 changed files
with
162 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tests/TestClasses/Controllers/DeleteMultipleTestController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Spatie\RouteAttributes\Tests\TestClasses\Controllers; | ||
|
||
use Spatie\RouteAttributes\Attributes\Delete; | ||
|
||
class DeleteMultipleTestController | ||
{ | ||
#[Delete('my-delete-method')] | ||
#[Delete('my-other-delete-method')] | ||
public function myDeleteMethod() | ||
{ | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/TestClasses/Controllers/GetMultipleTestController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Spatie\RouteAttributes\Tests\TestClasses\Controllers; | ||
|
||
use Spatie\RouteAttributes\Attributes\Get; | ||
|
||
class GetMultipleTestController | ||
{ | ||
#[Get('my-get-method')] | ||
#[Get('my-other-get-method')] | ||
public function myGetMethod() | ||
{ | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/TestClasses/Controllers/OptionsMultipleTestController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Spatie\RouteAttributes\Tests\TestClasses\Controllers; | ||
|
||
use Spatie\RouteAttributes\Attributes\Options; | ||
|
||
class OptionsMultipleTestController | ||
{ | ||
#[Options('my-options-method')] | ||
#[Options('my-other-options-method')] | ||
public function myOptionsMethod() | ||
{ | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/TestClasses/Controllers/PatchMultipleTestController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Spatie\RouteAttributes\Tests\TestClasses\Controllers; | ||
|
||
use Spatie\RouteAttributes\Attributes\Patch; | ||
|
||
class PatchMultipleTestController | ||
{ | ||
#[Patch('my-patch-method')] | ||
#[Patch('my-other-patch-method')] | ||
public function myPatchMethod() | ||
{ | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/TestClasses/Controllers/PostMultipleTestController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Spatie\RouteAttributes\Tests\TestClasses\Controllers; | ||
|
||
use Spatie\RouteAttributes\Attributes\Post; | ||
|
||
class PostMultipleTestController | ||
{ | ||
#[Post('my-post-method')] | ||
#[Post('my-other-post-method')] | ||
public function myPostMethod() | ||
{ | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/TestClasses/Controllers/PutMultipleTestController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Spatie\RouteAttributes\Tests\TestClasses\Controllers; | ||
|
||
use Spatie\RouteAttributes\Attributes\Put; | ||
|
||
class PutMultipleTestController | ||
{ | ||
#[Put('my-put-method')] | ||
#[Put('my-other-put-method')] | ||
public function myPutMethod() | ||
{ | ||
} | ||
} |