vendor/coreshop/core-shop/src/CoreShop/Bundle/WishlistBundle/CoreShopWishlistBundle.php line 26

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * CoreShop
  5.  *
  6.  * This source file is available under two different licenses:
  7.  *  - GNU General Public License version 3 (GPLv3)
  8.  *  - CoreShop Commercial License (CCL)
  9.  * Full copyright and license information is available in
  10.  * LICENSE.md which is distributed with this source code.
  11.  *
  12.  * @copyright  Copyright (c) CoreShop GmbH (https://www.coreshop.org)
  13.  * @license    https://www.coreshop.org/license     GPLv3 and CCL
  14.  *
  15.  */
  16. namespace CoreShop\Bundle\WishlistBundle;
  17. use CoreShop\Bundle\ResourceBundle\AbstractResourceBundle;
  18. use CoreShop\Bundle\ResourceBundle\CoreShopResourceBundle;
  19. use CoreShop\Bundle\StorageListBundle\CoreShopStorageListBundle;
  20. use Pimcore\HttpKernel\BundleCollection\BundleCollection;
  21. final class CoreShopWishlistBundle extends AbstractResourceBundle
  22. {
  23.     public function getSupportedDrivers(): array
  24.     {
  25.         return [
  26.             CoreShopResourceBundle::DRIVER_DOCTRINE_ORM,
  27.         ];
  28.     }
  29.     public static function registerDependentBundles(BundleCollection $collection): void
  30.     {
  31.         parent::registerDependentBundles($collection);
  32.         $collection->addBundle(new CoreShopStorageListBundle());
  33.     }
  34.     protected function getModelNamespace(): string
  35.     {
  36.         return 'CoreShop\Component\Wishlist\Model';
  37.     }
  38. }