Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 95db65f56d | |||
| 1ec9b05413 | |||
| 6a4ce3bef3 | |||
| bf89b962ec | |||
| 7de30e78ac | |||
| 6d65df0b9c | |||
| 5d56d98325 | |||
| 2f6597a957 | |||
| 93bb85f69f | |||
| 218b174d4f | |||
| 2258fa0c96 | |||
| 34b0e7f146 | |||
| ab25540462 | |||
| da950685c0 | |||
| 954e6aa712 | |||
| 3f410b8f55 | |||
| 78f356f030 | |||
| c35da20deb |
6
Makefile
6
Makefile
@@ -1,8 +1,10 @@
|
||||
PHP = docker compose run php
|
||||
|
||||
|
||||
composer_install:
|
||||
@$(PHP) composer install
|
||||
|
||||
composer_update:
|
||||
@$(PHP) composer update
|
||||
|
||||
static_analysis:
|
||||
@$(PHP) vendor/bin/psalm
|
||||
@$(PHP) vendor/bin/psalm
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
services:
|
||||
Pcm\SearchBundle\EventSubscriber\SearchableSubscriber:
|
||||
pcm_search.searchable_subscriber:
|
||||
class: Pcm\SearchBundle\EventSubscriber\SearchableSubscriber
|
||||
tags:
|
||||
- { name: doctrine.event_subscriber }
|
||||
|
||||
pcm_search.search_service:
|
||||
class: Pcm\SearchBundle\Service\SearchService
|
||||
public: true
|
||||
|
||||
22
src/DependencyInjection/PcmSearchExtension.php
Normal file
22
src/DependencyInjection/PcmSearchExtension.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pcm\SearchBundle\DependencyInjection;
|
||||
|
||||
use Symfony\Component\Config\FileLocator;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
||||
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
|
||||
|
||||
class PcmSearchExtension extends Extension
|
||||
{
|
||||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$loader = new YamlFileLoader(
|
||||
$container,
|
||||
new FileLocator(__DIR__.'/../../config')
|
||||
);
|
||||
$loader->load('services.yaml');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user