-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
NewReceiver
method, move logic to Context
method receiver
This removes the `NewReceiver` method and moves logic for the `Define` method from the `Engine` method receiver to `Context`. Moving the `Define` method was required due to a bug/feature where destroying a `Context` before all defined Receivers have also been destroyed causes memory errors. Tying method receiver definitions to the `Context` lifecycle implicitly fixes this issue. This approach, however, contains a possible flaw, since class names in PHP are defined in the global scope (i.e. the `Engine`), and destroying a defined `Receiver` also removes the class entry for that name, supposedly across all running contexts.
- Loading branch information
Showing
6 changed files
with
94 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters