forked from sonata-project/SonataUserBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
28 lines (22 loc) · 882 Bytes
/
admin.php
File metadata and controls
28 lines (22 loc) · 882 Bytes
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
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
use Sonata\UserBundle\Security\RolesBuilder\AdminRolesBuilder;
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->services()
->set('sonata.user.admin_roles_builder', AdminRolesBuilder::class)
->args([
service('security.authorization_checker'),
service('sonata.admin.pool')->nullOnInvalid(),
service('sonata.admin.configuration')->nullOnInvalid(),
service('translator'),
]);
};