Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New hook system #3266

Merged
merged 3 commits into from
May 21, 2013
Merged

New hook system #3266

merged 3 commits into from
May 21, 2013

Conversation

icewind1991
Copy link
Contributor

New hook system that allows better scoping of events, main advantage is better automated tests for classes using this system compared to OC_Hooks.

Not meant to replace the existing uses of OC_Hooks, instead meant for new classes that want to provide hooks

More info: https://gist.github.com/icewind1991/1e315e6e75c106406405

Required as part of the improved filesystem api I'm planning.

cc @MTGap @Raydiation @karlitschek @DeepDiver1975

* @param string $method optional
* @param callable $callback optional
*/
public function remoteListener($scope = null, $method = null, $callback = null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your gist says removeListener for this function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, typo

@MTGap
Copy link
Contributor

MTGap commented May 9, 2013

Do you want to move the old class into legacy in this pull request as well?

@MTGap
Copy link
Contributor

MTGap commented May 9, 2013

👍 All tests passed.

@icewind1991
Copy link
Contributor Author

@DeepDiver1975
Copy link
Member

🍻 for unit tests

@DeepDiver1975
Copy link
Member

@icewind1991 are you planing to push your gist to the dev docs?

@DeepDiver1975
Copy link
Member

👍

DeepDiver1975 added a commit that referenced this pull request May 21, 2013
@DeepDiver1975 DeepDiver1975 merged commit e2444ec into master May 21, 2013
@DeepDiver1975 DeepDiver1975 deleted the hooks branch May 21, 2013 22:21
@lock lock bot locked as resolved and limited conversation to collaborators Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants