<?php
/**
* Pimcore
*
* This source file is available under following license:
* - Pimcore Commercial License (PCL)
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license PCL
*/
namespace Pimcore\Bundle\DirectEditBundle;
use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\Bundle\EnterpriseBundleInterface;
use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\PimcoreEnterpriseSubscriptionToolsBundle;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
use Pimcore\HttpKernel\Bundle\DependentBundleInterface;
use Pimcore\HttpKernel\BundleCollection\BundleCollection;
class PimcoreDirectEditBundle extends AbstractPimcoreBundle implements EnterpriseBundleInterface, DependentBundleInterface
{
use PackageVersionTrait;
public function getJsPaths()
{
return [
'/admin/pimcore_direct_edit/settings',
'/bundles/pimcoredirectedit/js/startup.js',
'/bundles/pimcoredirectedit/js/modal.js'
];
}
public function getCssPaths()
{
return [
'/bundles/pimcoredirectedit/css/style.css'
];
}
public function getInstaller()
{
return $this->container->get(Installer::class);
}
protected function getComposerPackageName(): string
{
return 'pimcore/direct-edit';
}
/**
* @return string
*/
public function getBundleLicenseId(): string
{
return 'PDE';
}
public static function registerDependentBundles(BundleCollection $collection)
{
$collection->addBundle(new PimcoreEnterpriseSubscriptionToolsBundle());
}
}