-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathKernel.php
More file actions
42 lines (35 loc) · 1.2 KB
/
Kernel.php
File metadata and controls
42 lines (35 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
namespace Algolia\SearchBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
use Symfony\Component\HttpKernel\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* Returns an array of bundles to register.
*
* @return BundleInterface[] An array of bundle instances
*/
public function registerBundles(): array
{
return [
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new \Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new \JMS\SerializerBundle\JMSSerializerBundle(),
new \Symfony\Bundle\MonologBundle\MonologBundle(),
new AlgoliaSearchBundle(),
];
}
/**
* Loads the container configuration.
*
* @param LoaderInterface $loader A LoaderInterface instance
*/
public function registerContainerConfiguration(LoaderInterface $loader): void
{
$loader->load(__DIR__ . '/config/config.yml');
$loader->load(__DIR__ . '/../src/Resources/config/services.xml');
$loader->load(__DIR__ . '/config/algolia_search.yml');
$loader->load(__DIR__ . '/config/services.yml');
}
}