<?php/** * Pimcore * * This source file is available under two different licenses: * - GNU General Public License version 3 (GPLv3) * - Pimcore Enterprise License (PEL) * Full copyright and license information is available in * LICENSE.md which is distributed with this source code. * * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org) * @license http://www.pimcore.org/license GPLv3 and PEL */namespace App;use Factory\Shipping\CustomerServiceBundle\FactoryShippingCustomerServiceBundle;use Factory\Shipping\EnterPersonalAccountBundle\FactoryShippingEnterPersonalAccountBundle;use Factory\Shipping\UpsBundle\FactoryShippingUpsBundle;use Factory\Payment\AuthorizeBundle\FactoryPaymentAuthorizeBundle;use Factory\Payment\PurchaseOrderBundle\FactoryPaymentPurchaseOrderBundle;use Factory\PaymentBundle\FactoryPaymentBundle;use Factory\CartBundle\FactoryCartBundle;use Factory\CheckoutBundle\FactoryCheckoutBundle;use Factory\OrderManagementBundle\FactoryOrderManagementBundle;use Factory\ShippingBundle\FactoryShippingBundle;use Factory\SupportBundle\Contract\DataMapper\AbstractDataMapper;use Factory\SupportBundle\FactorySupportBundle;use Pimcore\Bundle\CoreBundle\PimcoreCoreBundle;use Pimcore\HttpKernel\BundleCollection\BundleCollection;class Kernel extends \Pimcore\Kernel{ /** * Adds bundles to register to the bundle collection. The collection is able * to handle priorities and environment specific bundles. * * @param BundleCollection $collection */ public function registerBundlesToCollection(BundleCollection $collection) {// if (class_exists('\\App\\App')) {// $collection->addBundle(new \App\App);// } if (class_exists('\Pimcore\Bundle\LegacyBundle\PimcoreLegacyBundle')) { $collection->addBundle(new \Pimcore\Bundle\LegacyBundle\PimcoreLegacyBundle); } if (class_exists(FactoryCartBundle::class)) { $collection->addBundle(new FactoryCartBundle()); } if (class_exists(FactoryCheckoutBundle::class)) { $collection->addBundle(new FactoryCheckoutBundle()); } if (class_exists(FactoryOrderManagementBundle::class)) { $collection->addBundle(new FactoryOrderManagementBundle()); } if (class_exists(FactoryPaymentAuthorizeBundle::class)) { $collection->addBundle(new FactoryPaymentAuthorizeBundle()); } if (class_exists(FactoryPaymentPurchaseOrderBundle::class)) { $collection->addBundle(new FactoryPaymentPurchaseOrderBundle()); } if (class_exists(FactoryPaymentBundle::class)) { $collection->addBundle(new FactoryPaymentBundle()); } if (class_exists(FactoryShippingCustomerServiceBundle::class)) { $collection->addBundle(new FactoryShippingCustomerServiceBundle()); } if (class_exists(FactoryShippingUpsBundle::class)) { $collection->addBundle(new FactoryShippingUpsBundle()); } if (class_exists(FactoryShippingEnterPersonalAccountBundle::class)) { $collection->addBundle(new FactoryShippingEnterPersonalAccountBundle()); } if (class_exists(FactoryShippingBundle::class)) { $collection->addBundle(new FactoryShippingBundle()); } if (class_exists(FactorySupportBundle::class)) { $collection->addBundle(new FactorySupportBundle()); } if (class_exists(PimcoreCoreBundle::class)) { $collection->addBundle(new PimcoreCoreBundle()); } } public function boot() { parent::boot(); AbstractDataMapper::setTransaltor($this->getContainer()->get('translator')); }}