You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+42-20Lines changed: 42 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,28 @@
2
2
3
3
All notable changes to this project will be documented in this file, in reverse chronological order by release.
4
4
5
+
## 3.4.0 - TBD
6
+
7
+
### Added
8
+
9
+
-[#275](https://github.com/zendframework/zend-servicemanager/pull/275) Enables plugin managers to accept as a creation context PSR Containers not implementing Interop interface
10
+
11
+
### Changed
12
+
13
+
- Nothing.
14
+
15
+
### Deprecated
16
+
17
+
- Nothing.
18
+
19
+
### Removed
20
+
21
+
- Nothing.
22
+
23
+
### Fixed
24
+
25
+
- Nothing.
26
+
5
27
## 3.3.2 - 2018-01-29
6
28
7
29
### Added
@@ -61,7 +83,7 @@ All notable changes to this project will be documented in this file, in reverse
61
83
container-interop at a minimum version of 1.2.0, and adding a requirement on
62
84
psr/container 1.0. `Zend\ServiceManager\ServiceLocatorInterface` now
63
85
explicitly extends the `ContainerInterface` from both projects.
64
-
86
+
65
87
Factory interfaces still typehint against the container-interop variant, as
66
88
changing the typehint would break backwards compatibility. Users can
67
89
duck-type most of these interfaces, however, by creating callables or
@@ -339,7 +361,7 @@ Documentation is now available at http://zend-servicemanager.rtfd.org
339
361
(previously, it was the third).
340
362
341
363
Example:
342
-
364
+
343
365
```php
344
366
$sm = new \Zend\ServiceManager\ServiceManager([
345
367
'factories' => [
@@ -348,7 +370,7 @@ Documentation is now available at http://zend-servicemanager.rtfd.org
348
370
'MyClassC' => 'MyFactory' // This is equivalent as using ::class
349
371
],
350
372
]);
351
-
373
+
352
374
$sm->get(MyClassA::class); // MyFactory will receive MyClassA::class as second parameter
353
375
```
354
376
@@ -367,7 +389,7 @@ Documentation is now available at http://zend-servicemanager.rtfd.org
367
389
if ($instance instanceof \Zend\Validator\ValidatorInterface) {
368
390
return;
369
391
}
370
-
392
+
371
393
throw new InvalidServiceException(sprintf(
372
394
'Plugin manager "%s" expected an instance of type "%s", but "%s" was received',
373
395
__CLASS__,
@@ -377,19 +399,19 @@ Documentation is now available at http://zend-servicemanager.rtfd.org
377
399
}
378
400
}
379
401
```
380
-
402
+
381
403
In version 3, this becomes:
382
-
404
+
383
405
```php
384
406
use Zend\ServiceManager\AbstractPluginManager;
385
407
use Zend\Validator\ValidatorInterface;
386
-
408
+
387
409
class MyPluginManager extends AbstractPluginManager
0 commit comments