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

Forwarding all errors #8

Closed
michalzubkowicz opened this issue Nov 13, 2013 · 6 comments
Closed

Forwarding all errors #8

michalzubkowicz opened this issue Nov 13, 2013 · 6 comments
Labels

Comments

@michalzubkowicz
Copy link

Old version was forwarding all errors to phpconsole. In new version i can only achieve this behaviour by \PhpConsole\OldVersionAdapter::register();
Why it isn`t enabled by default?

@barbushin
Copy link
Owner

Because calling \PhpConsole\OldVersionAdapter::register(); you just register global PhpConsole class emulator. Registering emulator does not mean calling some methods of this emulator. It's not the normal behavior that users will expect :)

@michalzubkowicz
Copy link
Author

So how can be achieved old behaviour without legacy class?

@barbushin
Copy link
Owner

You can extend PhpConsole\OldVersionEmulator and override register() method.

@michalzubkowicz
Copy link
Author

i suppose we are a bit misunderstanding each other.
I meant that i cannot forward all php errors in new version to phpconsole. In old version it was default behaviour.

@barbushin
Copy link
Owner

I don't understand what does mean forward errors as default behavior?
You want to register PHP Console errors handler just in one line of code? Try PhpConsole\Handler::getInstance()->start()

@barbushin barbushin reopened this Nov 13, 2013
@michalzubkowicz
Copy link
Author

Aah, i understand now. Thank you very much!

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

No branches or pull requests

2 participants