Skip to content

Commit

Permalink
remove enterprise subscription tools (#3)
Browse files Browse the repository at this point in the history
* remove enterprise subscription tools

* remove enterprise subscription tools

* Apply php-cs-fixer changes
  • Loading branch information
fashxp authored Feb 8, 2024
1 parent 86d85fe commit 5d29b40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pimcore/studio-api-bundle",
"license": "Pimcore Enterprise License (PEL)",
"license": "proprietary",
"type": "pimcore-bundle",
"description": "Pimcore Studio Api Bundle",
"config": {
Expand All @@ -18,7 +18,6 @@
"minimum-stability": "dev",
"require": {
"php": "~8.1.0 || ~8.2.0",
"pimcore/enterprise-subscription-tools": "^1.3",
"pimcore/pimcore": "^11.0",
"api-platform/core": "^3.2"
},
Expand Down
18 changes: 1 addition & 17 deletions src/PimcoreStudioApiBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,11 @@

namespace Pimcore\Bundle\StudioApiBundle;

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\BundleCollection\BundleCollection;

class PimcoreStudioApiBundle extends AbstractPimcoreBundle implements
EnterpriseBundleInterface
class PimcoreStudioApiBundle extends AbstractPimcoreBundle
{
private const ENTERPRISE_BUNDLE_LICENSE_ID = 'xLicensex';

public function getPath(): string
{
return dirname(__DIR__);
Expand All @@ -46,14 +40,4 @@ public function getInstaller(): ?InstallerInterface
/** @var InstallerInterface|null */
return $this->container->get(Installer::class);
}

public static function registerDependentBundles(BundleCollection $collection): void
{
$collection->addBundle(new PimcoreEnterpriseSubscriptionToolsBundle());
}

public function getBundleLicenseId(): string
{
return self::ENTERPRISE_BUNDLE_LICENSE_ID;
}
}

0 comments on commit 5d29b40

Please sign in to comment.