Skip to content

Commit

Permalink
Use non-deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Nov 27, 2024
1 parent 29b9d36 commit b69dd55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Routing/Loader/AttributeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ public function __construct(?string $env = null)
{
parent::__construct($env);

$this->setRouteAnnotationClass(AsMessageHandler::class);
if (method_exists($this, 'setRouteAttributeClass')) {
$this->setRouteAttributeClass(AsMessageHandler::class);
} else {
$this->setRouteAnnotationClass(AsMessageHandler::class);
}
}

/**
Expand Down

0 comments on commit b69dd55

Please sign in to comment.