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

Add method to get Flysystem driver. #7005

Merged
merged 1 commit into from
Jan 14, 2015
Merged

Add method to get Flysystem driver. #7005

merged 1 commit into from
Jan 14, 2015

Conversation

reinink
Copy link
Contributor

@reinink reinink commented Jan 14, 2015

A very simple addition to the new FilesystemAdapter which allows access to underlying Flysystem driver. This is especially helpful when working with libraries that implement the League\Flysystem\FilesystemInterface interface. A simple example:

$this->app->singleton('League\Glide\Server', function ($app) {

    $filesystem = $this->app->make('Illuminate\Contracts\Filesystem\Filesystem');

    return League\Glide\Factories\Server::create([
        'source' => $filesystem->getDriver()
        // etc
    ]);
});

taylorotwell added a commit that referenced this pull request Jan 14, 2015
Add method to get Flysystem driver.
@taylorotwell taylorotwell merged commit 9bcae8b into laravel:master Jan 14, 2015
@reinink
Copy link
Contributor Author

reinink commented Jan 14, 2015

I'm an idiot, I made the method protected. Give me a few minutes and I'll send an update PR. Sorry about that Taylor!

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

2 participants