Skip to content

Commit

Permalink
Add Api Platform Bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
alexz707 committed Jan 26, 2024
1 parent 2552149 commit 7f220cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/PimcoreStudioApiBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7f220cd

Please sign in to comment.