MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //home/cafsindia/lead_cafsinfotech.com/vendor/scheb/2fa-bundle/Resources/config/persistence.php
<?php

declare(strict_types=1);

use Scheb\TwoFactorBundle\Model\Persister\DoctrinePersister;
use Scheb\TwoFactorBundle\Model\Persister\DoctrinePersisterFactory;
use Scheb\TwoFactorBundle\Model\PersisterInterface;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;

return static function (ContainerConfigurator $container): void {
    $container->services()
        ->set('scheb_two_factor.persister_factory.doctrine', DoctrinePersisterFactory::class)
            ->args([
                service('doctrine')->nullOnInvalid(),
                '%scheb_two_factor.model_manager_name%',
            ])

        ->set('scheb_two_factor.persister.doctrine', DoctrinePersister::class)
            ->lazy(true)
            ->factory([service('scheb_two_factor.persister_factory.doctrine'), 'getPersister'])

        ->alias(PersisterInterface::class, 'scheb_two_factor.persister');
};