Skip to content

Commit

Permalink
Document "cache_with_file_extensions" server option.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Apr 25, 2023
1 parent d31132b commit abc904d
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions docs/2.0/config/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@ The easiest way to configure the `Server` is using the supplied factory.
<?php

$server = League\Glide\ServerFactory::create([
'source' => // Source filesystem
'source_path_prefix' => // Source filesystem path prefix
'cache' => // Cache filesystem
'cache_path_prefix' => // Cache filesystem path prefix
'temp_dir' => // Temporary directory where cache EXIF data should be stored
// (defaults to sys_get_temp_dir())
'group_cache_in_folders' => // Whether to group cached images in folders
'watermarks' => // Watermarks filesystem
'watermarks_path_prefix' => // Watermarks filesystem path prefix
'driver' => // Image driver (gd or imagick)
'max_image_size' => // Image size limit
'defaults' => // Default image manipulations
'presets' => // Preset image manipulations
'base_url' => // Base URL of the images
'response' => // Response factory
'source' => // Source filesystem
'source_path_prefix' => // Source filesystem path prefix
'cache' => // Cache filesystem
'cache_path_prefix' => // Cache filesystem path prefix
'temp_dir' => // Temporary directory where cache EXIF data should be stored
// (defaults to sys_get_temp_dir())
'group_cache_in_folders' => // Whether to group cached images in folders
'cache_with_file_extensions' => // Whether to include file extension in cache filename. Default `false`.
'watermarks' => // Watermarks filesystem
'watermarks_path_prefix' => // Watermarks filesystem path prefix
'driver' => // Image driver (gd or imagick)
'max_image_size' => // Image size limit
'defaults' => // Default image manipulations
'presets' => // Preset image manipulations
'base_url' => // Base URL of the images
'response' => // Response factory
]);
~~~

Expand Down

0 comments on commit abc904d

Please sign in to comment.