Skip to content
This repository was archived by the owner on Dec 6, 2017. It is now read-only.

[WIP]Prevent overriding providers by default (fix #48) #51

Closed
wants to merge 3 commits into from

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Jan 31, 2014

No description provided.

@bgourlie
Copy link
Contributor

I agree with that. I don't think it adds a whole lot of value to the error message.

@@ -66,8 +67,9 @@ class Module {
* implied that [id] should be instantiated.
*/
void type(Type id, {Type implementedBy, CreationStrategy creation,
Visibility visibility}) {
Visibility visibility, bool allowOverride: false}) {
Copy link
Contributor

Choose a reason for hiding this comment

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

allowOverride should probably just be override. allowOverride makes me think that while defining this type binding I would like to [dis]allow others to override this binding, rather than I might be overriding an existing binding with this one.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

vicb added a commit to vicb/di.dart that referenced this pull request Feb 3, 2014
Extracted from dart-archive#51 as the PR is being discussed.
@vicb vicb mentioned this pull request Feb 3, 2014
@pavelgj
Copy link
Contributor

pavelgj commented Apr 4, 2014

Do we still want this?

@vicb
Copy link
Contributor Author

vicb commented Apr 4, 2014

Closing for now

@vicb vicb closed this Apr 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants