[php] support for method attributes
Open
- Dominant language
- Scala
- Stars
- 34
- Forks
- 5
- Avg merge
- 1h 56m
- Merged PRs (30d)
- 3
Description
Method attributes are used by frameworks such as Symfony to specify routes and other information.
```php
// src/Controller/BlogController.php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class BlogController extends AbstractController
{
#[Route('/blog', name: 'blog_list')]
public function list(): Response
{
// ...
}
}
```
https://www.php.net/manual/en/language.attributes.overview.php
https://symfony.com/doc/current/routing.html
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.