mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-04 04:19:43 +00:00
# Conflicts: # src/Bundle/ChillEventBundle/Controller/EventController.php # src/Bundle/ChillEventBundle/Controller/ParticipationController.php # src/Bundle/ChillEventBundle/DependencyInjection/ChillEventExtension.php # src/Bundle/ChillEventBundle/Entity/Event.php # src/Bundle/ChillEventBundle/Form/EventType.php # src/Bundle/ChillEventBundle/Menu/AdminMenuBuilder.php # src/Bundle/ChillEventBundle/config/services.yaml # src/Bundle/ChillEventBundle/config/services/controller.yaml # src/Bundle/ChillMainBundle/Resources/views/Menu/user.html.twig # src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkDuplicateController.php # src/Bundle/ChillPersonBundle/Controller/PersonController.php # src/Bundle/ChillPersonBundle/Form/PersonType.php
46 lines
2.1 KiB
PHP
46 lines
2.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Chill\PersonBundle;
|
|
|
|
use Chill\MainBundle\Notification\FlagProviders\NotificationFlagProviderInterface;
|
|
use Chill\PersonBundle\Actions\Remove\PersonMoveSqlHandlerInterface;
|
|
use Chill\PersonBundle\DependencyInjection\CompilerPass\AccompanyingPeriodTimelineCompilerPass;
|
|
use Chill\PersonBundle\Export\Helper\CustomizeListPersonHelperInterface;
|
|
use Chill\PersonBundle\PersonIdentifier\PersonIdentifierEngineInterface;
|
|
use Chill\PersonBundle\Service\EntityInfo\AccompanyingPeriodInfoUnionQueryPartInterface;
|
|
use Chill\PersonBundle\Widget\PersonListWidgetFactory;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
|
|
class ChillPersonBundle extends Bundle
|
|
{
|
|
public function build(ContainerBuilder $container): void
|
|
{
|
|
parent::build($container);
|
|
|
|
$container->getExtension('chill_main')
|
|
->addWidgetFactory(new PersonListWidgetFactory());
|
|
|
|
$container->addCompilerPass(new AccompanyingPeriodTimelineCompilerPass(), \Symfony\Component\DependencyInjection\Compiler\PassConfig::TYPE_BEFORE_OPTIMIZATION, 0);
|
|
$container->registerForAutoconfiguration(AccompanyingPeriodInfoUnionQueryPartInterface::class)
|
|
->addTag('chill_person.accompanying_period_info_part');
|
|
$container->registerForAutoconfiguration(PersonMoveSqlHandlerInterface::class)
|
|
->addTag('chill_person.person_move_handler');
|
|
$container->registerForAutoconfiguration(CustomizeListPersonHelperInterface::class)
|
|
->addTag('chill_person.list_person_customizer');
|
|
$container->registerForAutoconfiguration(NotificationFlagProviderInterface::class)
|
|
->addTag('chill_main.notification_flag_provider');
|
|
$container->registerForAutoconfiguration(PersonIdentifierEngineInterface::class)
|
|
->addTag('chill_person.person_identifier_engine');
|
|
}
|
|
}
|