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

Commit 1a142df

Browse files
committed
Make container-interop a suggested feature
Not everyone will use lazy listeners. As such, they will need to opt-in by adding container-interop to their project.
1 parent 6a7663b commit 1a142df

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,17 @@
2929
}
3030
},
3131
"require": {
32-
"php": ">=5.5",
33-
"container-interop/container-interop": "dev-master"
32+
"php": ">=5.5"
3433
},
3534
"require-dev": {
3635
"phpunit/PHPUnit": "~4.0",
3736
"athletic/athletic": "^0.1",
3837
"squizlabs/php_codesniffer": "^2.0@dev",
39-
"zendframework/zend-stdlib": "^2.7.3"
38+
"zendframework/zend-stdlib": "^2.7.3",
39+
"container-interop/container-interop": "^1.1.0"
4040
},
4141
"suggest": {
42-
"zendframework/zend-stdlib": "^2.7.3, if using the FilterChain feature"
42+
"container-interop/container-interop": "^1.1.0, to use the lazy listeners feature",
43+
"zendframework/zend-stdlib": "^2.7.3, to use the FilterChain feature"
4344
}
4445
}

doc/book/intercepting-filters.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ take the incoming arguments in order to alter the workflow.
99
zend-eventmanager provides an intercepting filter implementation via
1010
`Zend\EventManager\FilterChain`.
1111

12+
## Preparation
13+
14+
To use the `FilterChain` implementation, you will need to install zend-stdlib,
15+
if you have not already:
16+
17+
```bash
18+
$ composer require zendframework/zend-stdlib
19+
```
20+
1221
## FilterChainInterface
1322

1423
`Zend\EventManager\FilterChain` is a concrete implementation of

doc/book/lazy-listeners/intro.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,12 @@ The feature consists of three classes:
1414
- `Zend\EventManager\LazyListenerAggregate`, which can take a list of
1515
`LazyEventListeners` and/or their definitions, and be used as an aggregate
1616
listener for attaching the lazy listeners to an event manager.
17+
18+
## Preparation
19+
20+
In order to use the lazy listeners feature, you will need to install
21+
container-interop, if you haven't already:
22+
23+
```bash
24+
$ composer require container-interop/container-interop
25+
```

0 commit comments

Comments
 (0)