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

Mark CallbackHandler as deprecated #35

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ All notable changes to this project will be documented in this file, in reverse

### Deprecated

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

### Removed

Expand Down
5 changes: 5 additions & 0 deletions src/CallbackHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
* A handler for an event, event, filterchain, etc. Abstracts PHP callbacks,
* primarily to allow for lazy-loading and ensuring availability of default
* arguments (currying).
*
* This was primarily used in zend-eventmanager for managing listeners; as that
* component removes its usage of this class for v3, it is deprecated.
*
* @deprecated as of v2.7.4.
*/
class CallbackHandler
{
Expand Down