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 source and cache path prefix option #26

Closed
reinink opened this issue Jan 14, 2015 · 1 comment
Closed

Add source and cache path prefix option #26

reinink opened this issue Jan 14, 2015 · 1 comment

Comments

@reinink
Copy link
Member

@reinink reinink commented Jan 14, 2015

Currently Glide accepts an instance of League\Flysystem\Filesystem for both the source and cache options. And while this works amazing, I'm worried there are situations where it would be desirable to also define a path prefix (folder) for each. This would mostly happen in situations where you only have a single instance of League\Flysystem\Filesystem available to you.

return League\Glide\Factories\Server::create([
    'source' => $filesystem,
    'cache' => $filesystem,
    'source_path_prefix' => 'images',
    'cache_path_prefix' => 'images/.cache'
]);
@reinink
Copy link
Member Author

@reinink reinink commented Jan 16, 2015

This has been added: e936fbf

@reinink reinink closed this Jan 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.