StubFactory example

/** * @group legacy */
    public function testRequirePreviousSessionOptionLegacy()
    {
        $this->expectDeprecation('Since symfony/security-bundle 6.4: Option "require_previous_session" at "root" is deprecated, it will be removed in version 7.0. Setting it has no effect anymore.');

        $options = [
            'require_previous_session' => true,
        ];

        $factory = new StubFactory();
        $nodeDefinition = new ArrayNodeDefinition('root');
        $factory->addConfiguration($nodeDefinition);

        $node = $nodeDefinition->getNode();
        $normalizedConfig = $node->normalize($options);

        $node->finalize($normalizedConfig);
    }

    public static function getSuccessHandlers()
    {
        
Home | Imprint | This part of the site doesn't use cookies.