Skip to content

Create functions to install standard hooks - #401

Merged
butonic merged 2 commits into
masterfrom
share_hooks
Nov 28, 2012
Merged

butonic merged 2 commits into
masterfrom
share_hooks

Conversation

@bartv2

@bartv2 bartv2 commented Nov 13, 2012

Copy link
Copy Markdown
Contributor

Also use these in tests that needs them
Fix #151

Also use these in tests that needs them
Fix #151
@MTGap

MTGap commented Nov 13, 2012

Copy link
Copy Markdown
Contributor

I don't think install is the right word. Why aren't they being registered in their own files?

@bartv2

bartv2 commented Nov 14, 2012

Copy link
Copy Markdown
Contributor Author

Sure i can change install to register, maybe better. But loading a class just to register the hooks is not the way to go.

@MTGap

MTGap commented Nov 15, 2012

Copy link
Copy Markdown
Contributor

But loading a class just to register the hooks is not the way to go.

That doesn't make much sense, don't we need to load all apps as well for those that register hooks?

@bartv2

bartv2 commented Nov 15, 2012

Copy link
Copy Markdown
Contributor Author

That doesn't make much sense, don't we need to load all apps as well for those that register hooks?

yes and those should be small pieces of code

@MTGap

MTGap commented Nov 15, 2012

Copy link
Copy Markdown
Contributor

Small pieces of code? You're still not explaining this fully.

@bartv2

bartv2 commented Nov 16, 2012

Copy link
Copy Markdown
Contributor Author

A class is most times a big piece of code, the appinfo/app.php files should/are written with the loading in mind. the app.php is therefore kept as small as possible

@MTGap

MTGap commented Nov 17, 2012

Copy link
Copy Markdown
Contributor

So the apps are loaded, but not all of the lib classes? That's why these are now moved to base.php?

@butonic

butonic commented Nov 28, 2012

Copy link
Copy Markdown
Contributor

👍 looks good, @schiesbn gave his 👍 in issue #151 so I'll merge this now

butonic added a commit that referenced this pull request Nov 28, 2012
Create functions to install standard hooks
@butonic
butonic merged commit eaa625c into master Nov 28, 2012
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 17, 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.

Unit tests for sharing are broken

3 participants