-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Fixed phpdoc in MicroKernelTrait::configureRoutes() #27870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Q | A |
---|---|
Branch? | 4.1 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | |
License | MIT |
Doc PR |
@@ -28,7 +28,7 @@ | |||
* Add or import routes into your application. | |||
* | |||
* $routes->import('config/routing.yml'); | |||
* $routes->add('/admin', 'AppBundle:Admin:dashboard', 'admin_dashboard'); | |||
* $routes->add('/admin', 'App\Controller\AdminController::dashboardAction', 'admin_dashboard'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to drop the Action
suffix (as recommended by https://symfony.com/doc/current/best_practices/controllers.html#controller-action-naming)
@chalasr , done! |
@@ -28,7 +28,7 @@ | |||
* Add or import routes into your application. | |||
* | |||
* $routes->import('config/routing.yml'); | |||
* $routes->add('/admin', 'AppBundle:Admin:dashboard', 'admin_dashboard'); | |||
* $routes->add('/admin', 'App\Controller\AdminController::dashboard', 'admin_dashboard'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be a single colon now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't we deprecate single colon syntax?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's were it happened #26085
So if I got it right, we now have Class::method
instead of a:b:c
and a:b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, I confused that
d9f62dd
to
948c841
Compare
Thank you @vudaltsov. |
…igureRoutes() (vudaltsov) This PR was merged into the 4.1 branch. Discussion ---------- [FrameworkBundle] Fixed phpdoc in MicroKernelTrait::configureRoutes() | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 948c841 [FrameworkBundle] Fixed phpdoc in MicroKernelTrait::configureRoutes()