From 7f220cd3912ed9bead187f0f7b0e876c0d7da947 Mon Sep 17 00:00:00 2001 From: Alex Zamponi <562324+alexz707@users.noreply.github.com> Date: Fri, 26 Jan 2024 10:16:47 +0100 Subject: [PATCH] Add Api Platform Bundle --- src/PimcoreStudioApiBundle.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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