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

Fixed #52 Replace http.flow with eventManager #53

Merged
merged 2 commits into from
Sep 12, 2015

Conversation

gianarb
Copy link
Contributor

@gianarb gianarb commented Sep 10, 2015

No description provided.

@EmanueleMinotto
Copy link
Contributor

I think you should choose a naming strategy, I see both lowercase with dots and camel case :\

@gianarb
Copy link
Contributor Author

gianarb commented Sep 11, 2015

heh good feedback :D suggestions? :)

@EmanueleMinotto
Copy link
Contributor

use the snake_case, in this way you'll be able to distinguish immediately between code invocations and other concepts

$object->get('doMethod'); // invokes ::doMethod() on the internal object
$object->get('event_manager'); // gets the implementation of the event manager

@gianarb gianarb force-pushed the feature/name-http-flow branch from ee92659 to 0f7e498 Compare September 12, 2015 12:01
@@ -37,7 +37,7 @@ require_once "./vendor/autoload.php";

$app = new \GianArb\Penny\App();

$app->getContainer()->get("http.flow")->attach("*", function ($event) {
$app->getContainer()->get("eventManager")->attach("*", function ($event) {
Copy link
Member

Choose a reason for hiding this comment

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

event_manager too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! :)

gianarb pushed a commit that referenced this pull request Sep 12, 2015
Fixed #52 Replace http.flow with eventManager
@gianarb gianarb merged commit b0b46e7 into master Sep 12, 2015
@gianarb
Copy link
Contributor Author

gianarb commented Sep 12, 2015

Thanks at all! :D

@gianarb gianarb deleted the feature/name-http-flow branch September 13, 2015 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants