You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -711,6 +711,14 @@ private function registerJsonLdHydraConfiguration(ContainerBuilder $container, a
711
711
return;
712
712
}
713
713
714
+
if (!InstalledVersions::isInstalled('api-platform/jsonld')) {
715
+
thrownew \LogicException('JSON+LD support cannot be enabled as the JSON+LD component is not installed. Try running "composer require api-platform/jsonld".');
716
+
}
717
+
718
+
if (!InstalledVersions::isInstalled('api-platform/hydra')) {
719
+
thrownew \LogicException('JSON+LD support cannot be enabled as the Hydra component is not installed. Try running "composer require api-platform/hydra".');
0 commit comments