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

Refactor the getConnection into a chainloader #422

Merged
merged 1 commit into from Jan 17, 2016

Conversation

mikeSimonson
Copy link
Contributor

No description provided.

@mikeSimonson mikeSimonson force-pushed the config-chainloader branch 2 times, most recently from be31dd8 to 48b08bc Compare January 16, 2016 08:20
{
/**
* read the input and return a Configuration, returns `false` if the config
* is not supported
Copy link
Member

Choose a reason for hiding this comment

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

missing documentation of the return type.

And I suggest returning Connection|null rather than Connection|false

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@stof Can you point to any documentation that would explain why the object|null is better than the object|false ?

Thanks for the review

mikeSimonson added a commit that referenced this pull request Jan 17, 2016
Refactor the getConnection into a chainloader
@mikeSimonson mikeSimonson merged commit b8267c8 into doctrine:master Jan 17, 2016
@mikeSimonson mikeSimonson deleted the config-chainloader branch January 17, 2016 20:07
@TomasVotruba
Copy link
Contributor

Beautiful refactoring, this is so nice to read

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.

None yet

3 participants