-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.9' into update-rector-01213
- Loading branch information
Showing
113 changed files
with
1,158 additions
and
393 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
41 changes: 41 additions & 0 deletions
41
src/AnnotatedRoutes/tests/App/Controller/NamelessRoutesController.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,41 @@ | ||
<?php | ||
|
||
/** | ||
* Spiral Framework. | ||
* | ||
* @license MIT | ||
* @author Vladislav Gorenkin (vladgorenkin) | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Spiral\Tests\Router\App\Controller; | ||
|
||
use Spiral\Router\Annotation\Route; | ||
|
||
class NamelessRoutesController | ||
{ | ||
/** | ||
* @Route(route="/nameless", methods="GET") | ||
*/ | ||
public function index() | ||
{ | ||
return 'index'; | ||
} | ||
|
||
/** | ||
* @Route(route="/nameless", methods="POST") | ||
*/ | ||
public function method() | ||
{ | ||
return 'method'; | ||
} | ||
|
||
/** | ||
* @Route(route="/nameless/route", methods={"GET", "POST"}) | ||
*/ | ||
public function route() | ||
{ | ||
return 'route'; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/AnnotatedRoutes/tests/App/Controller/PageController.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,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Spiral\Tests\Router\App\Controller; | ||
|
||
use Spiral\Router\Annotation\Route; | ||
|
||
final class PageController | ||
{ | ||
/** | ||
* @Route("/page/<page>", name="page_get", methods="GET") | ||
*/ | ||
public function get($page) | ||
{ | ||
return 'page-'.$page; | ||
} | ||
|
||
/** | ||
* @Route("/page/about", name="page_about", methods="GET", priority=-1) | ||
*/ | ||
public function about() | ||
{ | ||
return 'about'; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.