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

[5.8] Add bindings and singletons to the ServiceProvider #27638

Conversation

TBlindaruk
Copy link
Contributor

- this PR is preaty the same as laravel#27565. We do not have any reason for checking if property exist, in cas if we could just get property values ;)
/**
* @var array
*/
public $bindings = [];
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe make it protected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

then we should add the getter

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, my mistake. Haven't checked that it's used outside of the base provider.

/**
* @var array
*/
public $singletons = [];
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe make it protected?

@taylorotwell
Copy link
Member

I don't think I'm going to add anymore to the service provider for now.

@TBlindaruk TBlindaruk deleted the add_bind_and_singleton_to_base_service_provider branch February 23, 2019 19:09
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.

3 participants