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

Better function calls #16

Merged
merged 9 commits into from
Feb 29, 2016
Merged

Better function calls #16

merged 9 commits into from
Feb 29, 2016

Conversation

dantestopp
Copy link
Owner

It's now possible to add any path to autoloading with:

Hulk\Hulk::path('foo/');

to add a class to the framework use the command:

Hulk\Hulk::register('name', 'className', ['params']);

Now it's possible to get this class with:

$class = Hulk\Hulk::name();

or run functions directly

Hulk\Hulk::name()->myFunc();

@dantestopp dantestopp added this to the Version 0.0.2 milestone Feb 29, 2016
@dantestopp dantestopp mentioned this pull request Feb 29, 2016
5 tasks
dantestopp pushed a commit that referenced this pull request Feb 29, 2016
@dantestopp dantestopp merged commit 37db89c into v0.0.2-dev Feb 29, 2016
@dantestopp dantestopp deleted the v0.0.2-captain branch February 29, 2016 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant