- Issue created by @fvorillion
- Status changed to Closed: duplicate
over 1 year ago 7:07pm 22 March 2023 - πΊπΈUnited States Greg Boggs Portland Oregon
Fixed. No need to fork the module for dead versions of Drupal.
The version 8.x-1.4 was marked compatible to Drupal 10.
As said to the related issue, \Symfony\Cmf\Component\Routing\RouteObjectInterface is removed in 10.0.
But the code still use Symfony\Cmf\Component\Routing\RouteObjectInterface;
Install Drupal 10 core
Install and activate the module Current Page Crumb v8.x-1.4
I see the following error on my PHP logs :
NOTICE: PHP message: Uncaught PHP Exception Error: "Class "Symfony\Cmf\Component\Routing\RouteObjectInterface" not found" at /var/www/modules/current_page_crumb/src/BreadcrumbBuilder.php line 32
As proposed to the merge request https://git.drupalcode.org/project/current_page_crumb/-/merge_requests/4, change the line :
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
by
use Drupal\Core\Routing\RouteObjectInterface;
For backward compatibility, may be create a new version to start compatibility from Drupal 9.1 to Drupal 10.x
and keep version 8.x-1.x with only compatibility until Drupal 9.x.
Closed: duplicate
1.4
Code
Fixed. No need to fork the module for dead versions of Drupal.