Feature request: Confirm if class and action method exist for Symfony controller definition
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
The entry points are Symfony YAML route definitions and controller strings such as nonexistent_controller_class::indexAction. Start by tracing how phpstan-symfony currently reads or analyzes route definitions. Done means reporting missing controller classes or action methods during static analysis, before the route is invoked, with coverage for the shown example.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Currently, if a controller definition refers to a non-existent class/action method an error would be raised at time of route invocation.
example routing definition:
example_route:
path: /example/route
controller: nonexistent_controller_class::indexAction
When curl'ing this route, this raises the following exception:
InvalidArgumentException
The controller for URI "/example/route" is not callable: Controller "nonexistent_controller_class" does neither exist as service nor as class.
I would like phpstan-symfony to analyze route definitions so errors like this can be caught ahead of time rather than at runtime.
- Ngôn ngữ chính
- PHP
- Star
- 806
- Fork
- 104
- Merge trung bình
- 27 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của phpstan/phpstan-symfony
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
phpstan/phpstan-symfony#510 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
phpstan/phpstan-symfony#494 · 5 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
phpstan/phpstan-symfony#268 ·
-
Account for `\ErrorException` from `unserialize()` when Symfony’s PHP error conversion is enabledĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
phpstan/phpstan-symfony#514 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
phpstan/phpstan-symfony#509 · 2 bình luận ·
Tất cả issue của phpstan/phpstan-symfony
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
MagnaCapax/PMSS#1142 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug 🐛
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
netalertx/NetAlertX#1856 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug Status: Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feature good first issue html mcv php
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
lorisleiva/laravel-docker#166 ·