mirror of
https://github.com/jbcr/SyliusElasticsearchPlugin.git
synced 2026-03-24 00:42:08 +01:00
35 lines
972 B
PHP
35 lines
972 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Sylius\Bundle\CoreBundle\Application\Kernel;
|
|
use Symfony\Component\Config\Loader\LoaderInterface;
|
|
|
|
final class AppKernel extends Kernel
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function registerBundles(): array
|
|
{
|
|
return array_merge(parent::registerBundles(), [
|
|
new \Sylius\Bundle\AdminBundle\SyliusAdminBundle(),
|
|
new \Sylius\Bundle\ShopBundle\SyliusShopBundle(),
|
|
|
|
new \FOS\OAuthServerBundle\FOSOAuthServerBundle(), // Required by SyliusApiBundle
|
|
new \Sylius\Bundle\AdminApiBundle\SyliusAdminApiBundle(),
|
|
|
|
new \FOS\ElasticaBundle\FOSElasticaBundle(),
|
|
new \BitBag\SyliusElasticsearchPlugin\BitBagSyliusElasticsearchPlugin(),
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function registerContainerConfiguration(LoaderInterface $loader): void
|
|
{
|
|
$loader->load($this->getRootDir() . '/config/config.yml');
|
|
}
|
|
}
|