Skip to content

Commit

Permalink
[Routing] Rename annotations to attribute in AttributeClassLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
alamirault authored and nicolas-grekas committed Nov 5, 2024
1 parent 8a7df87 commit 7a46f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Routing/AttributeRouteControllerLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AttributeRouteControllerLoader extends AttributeClassLoader
/**
* Configures the _controller default parameter of a given Route instance.
*/
protected function configureRoute(Route $route, \ReflectionClass $class, \ReflectionMethod $method, object $annot): void
protected function configureRoute(Route $route, \ReflectionClass $class, \ReflectionMethod $method, object $attr): void
{
if ('__invoke' === $method->getName()) {
$route->setDefault('_controller', $class->getName());
Expand Down

0 comments on commit 7a46f7d

Please sign in to comment.