Created
May 18, 2021 04:52
-
-
Save BackEndTea/2164ef89fc31125d735f2f6c49243f55 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
// OPTION A: | |
class MyController | |
{ | |
//constructor, properties etc | |
/** | |
* @Route("/my/path") | |
*/ | |
public function __invoke(): Response; | |
} | |
// OPTION B: | |
/** | |
* @Route("/my/path") | |
*/ | |
class MyController | |
{ | |
//constructor, properties etc | |
public function __invoke(): Response; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment