Commit 58ea6ad1 authored by Berdir's avatar Berdir Committed by miro_dietiker

Issue #2862543 by kalpaitch, Berdir: Update link.manager dependency to use service by hal.module

parent 5e30fd02
......@@ -17,11 +17,11 @@ class EntityReferenceRevisionsServiceProvider extends ServiceProviderBase {
*/
public function alter(ContainerBuilder $container) {
$modules = $container->getParameter('container.modules');
if (isset($modules['hal']) && isset($modules['rest'])) {
if (isset($modules['hal'])) {
// Hal module is enabled, add our new normalizer for entity reference
// revision items.
$service_definition = new Definition('Drupal\entity_reference_revisions\Normalizer\EntityReferenceRevisionItemNormalizer', array(
new Reference('rest.link_manager'),
new Reference('hal.link_manager'),
new Reference('serializer.entity_resolver'),
));
// The priority must be higher than that of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment