cmf removed from drupal 10
authordemeritcowboy <demeritcowboy@hotmail.com>
Tue, 26 Apr 2022 03:19:54 +0000 (23:19 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Tue, 26 Apr 2022 13:21:36 +0000 (09:21 -0400)
CRM/Utils/System/Drupal8.php

index d52e4c457b32c92cc25bc86e7cfa22052b45f29e..9793f30d79c284823b77eec249ec892c1fcc8818 100644 (file)
@@ -419,8 +419,8 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase {
     $kernel->preHandle($request);
     $container = $kernel->rebuildContainer();
     // Add our request to the stack and route context.
-    $request->attributes->set(\Symfony\Cmf\Component\Routing\RouteObjectInterface::ROUTE_OBJECT, new \Symfony\Component\Routing\Route('<none>'));
-    $request->attributes->set(\Symfony\Cmf\Component\Routing\RouteObjectInterface::ROUTE_NAME, '<none>');
+    $request->attributes->set(\Drupal\Core\Routing\RouteObjectInterface::ROUTE_OBJECT, new \Symfony\Component\Routing\Route('<none>'));
+    $request->attributes->set(\Drupal\Core\Routing\RouteObjectInterface::ROUTE_NAME, '<none>');
     $container->get('request_stack')->push($request);
     $container->get('router.request_context')->fromRequest($request);