-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Why is $loop
private?
#40
Comments
because encapsulation. |
So making What is the practical downside of making a dependency that might be used by subclasses available to them? |
just capture it with I guess |
@staabm I know I can capture it and that's what I do now, I'd just rather not have to. Anyway, feel free to close if you feel this would not be an improvement. |
The I agree that keeping this as-is encourages a cleaner design because it makes This has also already been covered in #12, #14 and #27. I hope this helps 👍 I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we may reopen this 👍 |
When creating a subclass of the socket server I am forced to override the constructor if I want to access the loop. What is the argument for making
$loop
private instead of protected?The text was updated successfully, but these errors were encountered: