Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit a3efbdf

Browse files
committed
Updated migration documentation to reflect Config changes
1 parent dcdf348 commit a3efbdf

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

doc/book/migration.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,14 @@ class HelperConfig implements ConfigInterface
159159
}
160160
```
161161

162+
### Config class
163+
164+
`Zend\ServiceManager\Config` has been updated to follow the changes to the
165+
`ConfigInterface` and `ServiceManager`. This essentially means that it removes
166+
the various getter methods, and that the `configureServiceManager()` method
167+
instead aggregates the relevant configuration from the configuration passed to
168+
the constructor to pass to `ServiceManager::withConfig()`.
169+
162170
## Invokables
163171

164172
*Invokables no longer exist,* at least, not identically to how they existed in
@@ -761,7 +769,6 @@ We may re-introduce it via a separate component in the future.
761769

762770
The following interfaces, traits, and classes were *removed*:
763771

764-
- `Zend\ServiceManager\Config`
765772
- `Zend\ServiceManager\MutableCreationOptionsInterface`; this was previously
766773
used by the `AbstractPluginManager`, and is no longer required as we ship a
767774
separate `PluginManagerInterface`, and because the functionality is
@@ -787,3 +794,6 @@ The following classes and interfaces have changes:
787794
`ServiceManager` instance. This is because instances cannot be configured
788795
in-situ; implementers will now need to call `withConfig()` and return the
789796
instance returned by that method.
797+
- `Zend\ServiceManager\Config` was updated to follow the changes to
798+
`ConfigInterface` and `ServiceManager`, and now returns a new
799+
`ServiceManager` instance from `configureServiceManager()`.

0 commit comments

Comments
 (0)