foreach(array_merge($this->options, $this->defaultSuccessHandlerOptions, $this->defaultFailureHandlerOptions)as$name => $default){ if('require_previous_session' === $name){ $builder ->booleanNode($name) ->setDeprecated('symfony/security-bundle', '6.4', 'Option "%node%" at "%path%" is deprecated, it will be removed in version 7.0. Setting it has no effect anymore.') ->defaultValue($default); }elseif(\is_bool($default)){ $builder->booleanNode($name)->defaultValue($default); }else{ $builder->scalarNode($name)->defaultValue($default); } } }
if(!isset($deprecation['package'])){ thrownewInvalidArgumentException(sprintf('Missing attribute "package" of the "deprecated" option in "%s".', $file)); }
if(!isset($deprecation['version'])){ thrownewInvalidArgumentException(sprintf('Missing attribute "version" of the "deprecated" option in "%s".', $file)); }
/**
* Marks this option as deprecated.
*
* @param string $package The name of the composer package that is triggering the deprecation
* @param string $version The version of the package that introduced the deprecation
* @param string|\Closure $message The deprecation message to use
*
* @return $this
*/ publicfunctiondeprecated(string $package, string $version, string|\Closure $message = 'The option "%name%" is deprecated.'): static { $this->resolver->setDeprecated($this->name, $package, $version, $message);
return$this; }
/**
* Sets the normalizer for this option.
*
* @return $this
*
* @throws AccessException If called from a lazy option or normalizer
*/