Add source and cache path prefix option #26

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

Comments

Projects
None yet
1 participant
@reinink
Member

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

This comment has been minimized.

Show comment
Hide comment
@reinink

reinink Jan 16, 2015

Member

This has been added: e936fbf

Member

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