<?php
declare(strict_types=1);
/**
* @copyright 2020 Crehler Sp. z o. o.
* @link https://crehler.com/
* @support support@crehler.com
*
* @author Mateusz FlasiĆski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Crehler\Catalog;
use Crehler\Catalog\Lifecycle\Install;
use Crehler\Catalog\Service\Handlers\PageHandlerCompilerPass;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class CrehlerCatalog extends Plugin
{
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new PageHandlerCompilerPass());
parent::build($container);
}
public function install(InstallContext $installContext): void
{
$install = new Install($this->container);
$install->run($installContext->getContext());
parent::install($installContext);
}
}