Skip to content

Commit

Permalink
Reordering config values
Browse files Browse the repository at this point in the history
  • Loading branch information
antennaio committed Mar 15, 2016
1 parent c21432f commit b6019a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions config/clyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,43 @@

/*
|--------------------------------------------------------------------------
| Cache Filesystem
| Source Path Prefix
|--------------------------------------------------------------------------
|
| Please specify cache filesystem (local or s3).
| This is a path where source files will be stored.
|
*/
'cache' => 'local',
'source_path_prefix' => '/uploads',

/*
|--------------------------------------------------------------------------
| Watermarks Filesystem
| Cache Filesystem
|--------------------------------------------------------------------------
|
| Please specify watermarks filesystem (local or s3).
| Please specify cache filesystem (local or s3).
|
*/
'watermarks' => 'local',
'cache' => 'local',

/*
|--------------------------------------------------------------------------
| Source Path Prefix
| Cache Path Prefix
|--------------------------------------------------------------------------
|
| This is a path where source files will be stored.
| This is a path where cache files will be stored.
|
*/
'source_path_prefix' => '/uploads',
'cache_path_prefix' => '/uploads/.cache',

/*
|--------------------------------------------------------------------------
| Cache Path Prefix
| Watermarks Filesystem
|--------------------------------------------------------------------------
|
| This is a path where cache files will be stored.
| Please specify watermarks filesystem (local or s3).
|
*/
'cache_path_prefix' => '/uploads/.cache',
'watermarks' => 'local',

/*
|--------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/ClydeImageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public function show(Request $request, $filename)

$server = ServerFactory::create([
'source' => $this->files->disk(config('clyde.source'))->getDriver(),
'cache' => $this->files->disk(config('clyde.cache'))->getDriver(),
'watermarks' => $this->files->disk(config('clyde.watermarks'))->getDriver(),
'source_path_prefix' => config('clyde.source_path_prefix'),
'cache' => $this->files->disk(config('clyde.cache'))->getDriver(),
'cache_path_prefix' => config('clyde.cache_path_prefix'),
'watermarks' => $this->files->disk(config('clyde.watermarks'))->getDriver(),
'watermarks_path_prefix' => config('clyde.watermarks_path_prefix'),
'max_image_size' => config('clyde.max_image_size'),
'presets' => config('clyde.presets'),
Expand Down

0 comments on commit b6019a1

Please sign in to comment.