fixes #8539, see problem description over there.
If a ContainerBuilder Instance has Scopes defined, they are now dumped to XML and YML Files. The PhpDumper already does the same.
The Loaders now also load Scopes from file and registers them at the ContainerBuilder.
Dump Scopes in XML and YML
if a ContainerBuilder has Scopes defined, they are now dumped to yml
files and xml files also.
Load Scopes from XML and YML files
Add Scopes to Container if defined in Config Files. Duplicates are
I'm not convinced that scopes should be part of the dumper/loader system; until now, XML and YAML files are just about describing the services and parameters of a container.
Closing for the reasons explained in my last comment.