X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Frest%2Fsrc%2FRestServiceProvider.php;fp=web%2Fcore%2Fmodules%2Frest%2Fsrc%2FRestServiceProvider.php;h=e705de4177d09c43da64f5de2b878c5d0deae346;hp=ca6b14b76fb183624b154cfac9c30bfb30914028;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a diff --git a/web/core/modules/rest/src/RestServiceProvider.php b/web/core/modules/rest/src/RestServiceProvider.php index ca6b14b76..e705de417 100644 --- a/web/core/modules/rest/src/RestServiceProvider.php +++ b/web/core/modules/rest/src/RestServiceProvider.php @@ -27,18 +27,21 @@ class RestServiceProvider implements ServiceProviderInterface { if (isset($modules['hal'])) { // @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0. // Use hal.link_manager instead. + // @see https://www.drupal.org/node/2830467 $service_definition = new DefinitionDecorator(new Reference('hal.link_manager')); $service_definition->setClass(LinkManager::class); $container->setDefinition('rest.link_manager', $service_definition); // @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0. // Use hal.link_manager.type instead. + // @see https://www.drupal.org/node/2830467 $service_definition = new DefinitionDecorator(new Reference('hal.link_manager.type')); $service_definition->setClass(TypeLinkManager::class); $container->setDefinition('rest.link_manager.type', $service_definition); // @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0. // Use hal.link_manager.relation instead. + // @see https://www.drupal.org/node/2830467 $service_definition = new DefinitionDecorator(new Reference('hal.link_manager.relation')); $service_definition->setClass(RelationLinkManager::class); $container->setDefinition('rest.link_manager.relation', $service_definition);