collectors.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\DependencyInjection\Loader\Configurator;
  11. use Symfony\Bundle\SecurityBundle\DataCollector\SecurityDataCollector;
  12. return static function (ContainerConfigurator $container) {
  13. $container->services()
  14. ->set('data_collector.security', SecurityDataCollector::class)
  15. ->args([
  16. service('security.untracked_token_storage'),
  17. service('security.role_hierarchy'),
  18. service('security.logout_url_generator'),
  19. service('security.access.decision_manager'),
  20. service('security.firewall.map'),
  21. service('debug.security.firewall')->nullOnInvalid(),
  22. ])
  23. ->tag('data_collector', [
  24. 'template' => '@Security/Collector/security.html.twig',
  25. 'id' => 'security',
  26. 'priority' => 270,
  27. ])
  28. ;
  29. };