<?php declare(strict_types=1);
namespace Nimbits\NimbitsArticlePDFsNext;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Context;
use Shopware\Core\Framework\Plugin\Context\ActivateContext;
use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Shopware\Core\Framework\CustomField\CustomFieldTypes;
use Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface;
use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria;
use Shopware\Core\Framework\DataAbstractionLayer\Search\Filter\EqualsFilter;
use Shopware\Core\Framework\DataAbstractionLayer\Search\IdSearchResult;
use Shopware\Core\System\SystemConfig\SystemConfigDefinition;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Uuid\Uuid;
use Shopware\Core\Defaults;
use Nimbits\NimbitsArticlePDFsNext\Schema\SchemaUpgrade;
class NimbitsArticlePDFsNext extends Plugin
{
public function getServicesFilePath(): string
{
return 'Resources/service/services.xml';
}
public function getViewPaths(): array
{
$viewPaths = parent::getViewPaths();
$viewPaths[] = 'Resources/views/storefront';
return $viewPaths;
}
public function activate(ActivateContext $context): void
{
parent::activate($context);
SchemaUpgrade::activate($context, $this->container);
}
public function deactivate(DeactivateContext $context): void
{
parent::deactivate($context);
SchemaUpgrade::deactivate($context, $this->container);
}
public function install(InstallContext $context): void
{
parent::install($context);
SchemaUpgrade::install($context, $this->container);
}
public function uninstall(UninstallContext $context): void
{
parent::uninstall($context);
SchemaUpgrade::uninstall($context, $this->container);
}
}