<?php
namespace Webkul\ShopifyConnectorBundle;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
use Pimcore\Extension\Bundle\Installer\InstallerInterface;
use Pimcore\HttpKernel\Bundle\DependentBundleInterface;
use Pimcore\HttpKernel\BundleCollection\BundleCollection;
use Webkul\CoreBundle\WebkulCoreBundle;
class WebkulShopifyConnectorBundle extends AbstractPimcoreBundle implements DependentBundleInterface
{
const PLUGIN_NAME = 'WebkulShopifyConnector';
public function getJsPaths()
{
return [
'/bundles/webkulshopifyconnector/js/pimcore/startup.js',
'/bundles/webkulshopifyconnector/js/pimcore/account.js',
'/bundles/webkulshopifyconnector/js/pimcore/account_credential_tab.js',
'/bundles/webkulshopifyconnector/js/pimcore/account_credential_tab_setting.js',
'/bundles/webkulshopifyconnector/js/pimcore/object_mapping.js',
'/bundles/webkulshopifyconnector/js/pimcore/product_attribute_mapping_tab.js',
'/bundles/webkulshopifyconnector/js/pimcore/category_attribute_mapping_tab.js',
];
}
public function getCssPaths()
{
return [
'/bundles/webkulshopifyconnector/css/main.css'
];
}
/**
* If the bundle has an installation routine, an installer is responsible of handling installation related tasks
*
* @return InstallerInterface|null
*/
public function getInstaller()
{
return $this->container->get(Installer::class);
}
public static function registerDependentBundles(BundleCollection $collection)
{
// register any bundles your bundle depends on here
$collection->addBundle(new WebkulCoreBundle);
}
}