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.4] Set a custom connection resolver using static setters #17248

Merged
merged 1 commit into from
Jan 12, 2017
Merged

[5.4] Set a custom connection resolver using static setters #17248

merged 1 commit into from
Jan 12, 2017

Conversation

themsaid
Copy link
Member

This will allow using a custom connection resolver since the current implementation uses Container::make() which doesn't accept a second argument for options anymore.

Illuminate\Database\Connection::resolveConnection('mysql', function($connection, $database, $prefix, $config){
    return new MySqlConnection($connection, $database, $prefix, $config);
});

@themsaid themsaid changed the title [5.4] Set a customer connection resolver using static setters [5.4] Set a custom connection resolver using static setters Jan 10, 2017
@taylorotwell taylorotwell merged commit 2e46846 into laravel:5.4 Jan 12, 2017
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.

2 participants