<?php
declare(strict_types=1);
/*
*
* This file is part of the PEC Platform UserAdminBundle.
*
* (c) PEC project engineers & consultants
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Pec\Bundle\UserAdminBundle;
use Pec\Bundle\UserAdminBundle\Service\AddUserServiceInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* The UserAdmin Bundle allows the management of users and their roles.
*/
class PecUserAdminBundle extends Bundle {
public static function getRequiredBundles(string $env, array &$requiredBundles = []): array {
if(isset($requiredBundles['PecUserAdminBundle'])) {
return $requiredBundles;
}
$requiredBundles['PecUserAdminBundle'] = '\Pec\Bundle\UserAdminBundle\PecUserAdminBundle';
$requiredBundles['RollerworksPasswordStrengthBundle'] = '\Rollerworks\Bundle\PasswordStrengthBundle\RollerworksPasswordStrengthBundle';
\Pec\Bundle\PlatformBundle\PecPlatformBundle::getRequiredBundles($env, $requiredBundles);
return $requiredBundles;
}
public function build(ContainerBuilder $container) {
$container->registerForAutoconfiguration(AddUserServiceInterface::class)->addTag(AddUserServiceInterface::TAG);
}
}