src/AppBundle/Webkul/ShopifyConnectorBundle/WebkulShopifyConnectorBundle.php line 11

Open in your IDE?
  1. <?php
  2. namespace Webkul\ShopifyConnectorBundle;
  3. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  4. use Pimcore\Extension\Bundle\Installer\InstallerInterface;
  5. use Pimcore\HttpKernel\Bundle\DependentBundleInterface;
  6. use Pimcore\HttpKernel\BundleCollection\BundleCollection;
  7. use Webkul\CoreBundle\WebkulCoreBundle;
  8. class WebkulShopifyConnectorBundle extends AbstractPimcoreBundle implements DependentBundleInterface
  9. {
  10.     const PLUGIN_NAME 'WebkulShopifyConnector';
  11.     public function getJsPaths()
  12.     {
  13.         return [
  14.             '/bundles/webkulshopifyconnector/js/pimcore/startup.js',
  15.             '/bundles/webkulshopifyconnector/js/pimcore/account.js',
  16.             '/bundles/webkulshopifyconnector/js/pimcore/account_credential_tab.js',
  17.             '/bundles/webkulshopifyconnector/js/pimcore/account_credential_tab_setting.js',
  18.             '/bundles/webkulshopifyconnector/js/pimcore/object_mapping.js',
  19.             '/bundles/webkulshopifyconnector/js/pimcore/product_attribute_mapping_tab.js',
  20.             '/bundles/webkulshopifyconnector/js/pimcore/category_attribute_mapping_tab.js',
  21.         ];
  22.     }
  23.     public function getCssPaths()
  24.     {
  25.         return [
  26.             '/bundles/webkulshopifyconnector/css/main.css'
  27.         ];
  28.     }
  29.     /**
  30.      * If the bundle has an installation routine, an installer is responsible of handling installation related tasks
  31.      *
  32.      * @return InstallerInterface|null
  33.      */
  34.     public function getInstaller()
  35.     {
  36.         return $this->container->get(Installer::class);
  37.     }
  38.     
  39.     public static function registerDependentBundles(BundleCollection $collection)
  40.     {
  41.         // register any bundles your bundle depends on here
  42.         $collection->addBundle(new WebkulCoreBundle);
  43.     }
  44. }