<?php declare(strict_types=1);
/**
* @copyright 2020 Crehler Sp. z o. o. <https://crehler.com>
*
* @support Crehler <support@crehler.com>
* @created 09 march 2020
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Crehler\MojeBambinoEngine;
use Shopware\Core\Framework\Context;
use Shopware\Core\Framework\Plugin;
use Shopware\Storefront\Framework\ThemeInterface;
use Shopware\Core\Framework\Plugin\Context\UpdateContext;
use Shopware\Core\Framework\Plugin\Context\ActivateContext;
use Crehler\MojeBambinoEngine\Util\Lifecycle\ActivateDeactivate;
class CrehlerMojeBambinoEngine extends Plugin implements ThemeInterface
{
public const SYSTEM_CONFIG_DOMAIN = 'CrehlerMojeBambinoEngine.config';
public function activate(ActivateContext $activateContext): void
{
(new ActivateDeactivate(
$this->container->get('custom_field_set.repository'),
$this->container->get('custom_field.repository'),
$this->container->get('import_export_profile.repository')
))->activate($activateContext->getContext());
}
public function update(UpdateContext $updateContext): void
{
(new ActivateDeactivate(
$this->container->get('custom_field_set.repository'),
$this->container->get('custom_field.repository'),
$this->container->get('import_export_profile.repository')
))->activate($updateContext->getContext());
}
public function getThemeConfigPath(): string
{
return 'theme.json';
}
}