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

Commit 7a9f9b1

Browse files
committed
Merge pull request #35 from weierophinney/hotfix/deprecate-callback-handler
Mark CallbackHandler as deprecated
2 parents 6b2ef29 + 2fe5468 commit 7a9f9b1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ All notable changes to this project will be documented in this file, in reverse
1010

1111
### Deprecated
1212

13-
- Nothing.
13+
- [#35](https://github.com/zendframework/zend-stdlib/pull/35) deprecates
14+
`Zend\Stdlib\CallbackHandler`, as the one component that used it,
15+
zend-eventmanager, will no longer depend on it starting in v3.
1416

1517
### Removed
1618

src/CallbackHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
* A handler for an event, event, filterchain, etc. Abstracts PHP callbacks,
1818
* primarily to allow for lazy-loading and ensuring availability of default
1919
* arguments (currying).
20+
*
21+
* This was primarily used in zend-eventmanager for managing listeners; as that
22+
* component removes its usage of this class for v3, it is deprecated.
23+
*
24+
* @deprecated as of v2.7.4.
2025
*/
2126
class CallbackHandler
2227
{

0 commit comments

Comments
 (0)