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

Event constants #12

Open
BlackScorp opened this issue Mar 30, 2017 · 2 comments
Open

Event constants #12

BlackScorp opened this issue Mar 30, 2017 · 2 comments

Comments

@BlackScorp
Copy link
Member

It would be nice to have constants for events so i dont have to remember everytime the name of the event

@hausl
Copy link

hausl commented Apr 20, 2017

Du you have an example? Im afraid i dont understand you what do you mean ;) Thx!

@BlackScorp
Copy link
Member Author

Right now, i trigger the events like this

https://github.com/BlackScorp/webrpg/blob/master/bootstrap.php#L35

and listen to them like here https://github.com/BlackScorp/webrpg/blob/master/bootstrap.php#L53 first of all, i dont know what kinds of events even exists. If i would have constants like EVENT_HTTP_500 by typing EVENT_ i would see code completion and could easy select my event.

so for this example there would be a place where constants are definined

define('EVENT_HTTP_500','http.500'); and so on for all events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants