diff --git a/src/PimcoreStudioApiBundle.php b/src/PimcoreStudioApiBundle.php index bb1ca3391..1d54351ab 100644 --- a/src/PimcoreStudioApiBundle.php +++ b/src/PimcoreStudioApiBundle.php @@ -13,14 +13,16 @@ namespace Pimcore\Bundle\StudioApiBundle; +use ApiPlatform\Symfony\Bundle\ApiPlatformBundle; use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\Bundle\EnterpriseBundleInterface; use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\PimcoreEnterpriseSubscriptionToolsBundle; use Pimcore\Extension\Bundle\AbstractPimcoreBundle; use Pimcore\Extension\Bundle\Installer\InstallerInterface; +use Pimcore\HttpKernel\Bundle\DependentBundleInterface; use Pimcore\HttpKernel\BundleCollection\BundleCollection; class PimcoreStudioApiBundle extends AbstractPimcoreBundle implements - EnterpriseBundleInterface + EnterpriseBundleInterface, DependentBundleInterface { private const ENTERPRISE_BUNDLE_LICENSE_ID = 'xLicensex'; @@ -50,6 +52,7 @@ public function getInstaller(): ?InstallerInterface public static function registerDependentBundles(BundleCollection $collection): void { $collection->addBundle(new PimcoreEnterpriseSubscriptionToolsBundle()); + $collection->addBundle(new ApiPlatformBundle()); } public function getBundleLicenseId(): string