NodeDefinition::setDeprecated()
to NodeDefinition::setDeprecation(string $package, string $version, string $message)
BaseNode::setDeprecated()
to BaseNode::setDeprecation(string $package, string $version, string $message)
BaseNode::setDeprecated()
to un-deprecate a nodeBaseNode::getDeprecationMessage()
, use BaseNode::getDeprecation()
insteadTreeBuilder
without passing root node information.root()
method in TreeBuilder
, pass the root node information to the constructor insteadgetChildNodeDefinitions()
to ParentNodeDefinitionInterfaceFileLoaderLoadException
, use LoaderLoadException
insteadimport()
methodcannotBeEmpty()
if the value is validated with validate()
Resource\*
classes final and not implement Serializable
anymoreroot()
method in TreeBuilder
, pass the root node information to the constructor insteadTreeBuilder
without passing root node informationFileLoaderLoadException
to LoaderLoadException
setPathSeparator
method to NodeBuilder
class$pathSeparator
constructor argument to BaseNode
Processor
class has been made finalConfigCachePass
setDeprecated()
method to indicate a deprecated nodeXmlUtils::parse()
method to parse an XML stringConfigCachePass
ReflectionClassResource
class$exists
constructor argument to ClassExistenceResource
ClassExistenceResource
work with interfaces and traitsConfigCachePass
(originally in FrameworkBundle)castToArray()
helper to turn any config value into an arrayReferenceDumper
classResourceInterface::isFresh()
methodBCResourceInterfaceChecker
classResourceInterface::getResource()
methodThe edge case of defining just one value for nodes of type Enum is now allowed:
$rootNode
->children()
->enumNode('variable')
->values(['value'])
->end()
->end()
;
Before: InvalidArgumentException
(variable must contain at least two
distinct elements).
After: the code will work as expected and it will restrict the values of the
variable
option to just value
.
ResourceInterface::isFresh()
method. If you implement custom resource types and they
can be validated that way, make them implement the new SelfCheckingResourceInterface
.ConfigCacheInterface
, ConfigCacheFactoryInterface
and a basic ConfigCacheFactory
implementation to delegate creation of ConfigCache instancesArrayNodeDefinition::canBeEnabled()
and ArrayNodeDefinition::canBeDisabled()
to ease configuration when some sections are respectively disabled / enabled
by default.normalizeKeys()
method for array nodes (to avoid key normalization)ArrayNodeDefinition
Serializable
on resourcesLoaderResolverInterface
is now used instead of LoaderResolver
for type
hinting