-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.php
More file actions
39 lines (34 loc) 路 1.48 KB
/
Copy pathConfig.php
File metadata and controls
39 lines (34 loc) 路 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
declare(strict_types=1);
namespace SixtyEightPublishers\ImageStorage\Config;
use SixtyEightPublishers\FileStorage\Config\Config as FileStorageConfig;
final class Config extends FileStorageConfig
{
public const SIGNATURE_PARAMETER_NAME = 'signature_parameter_name';
public const SIGNATURE_KEY = 'signature_key';
public const SIGNATURE_ALGORITHM = 'signature_algorithm';
public const DISABLE_SIGNATURE_ON_KNOWN_MODIFIERS = 'disable_signature_on_known_modifiers';
public const MODIFIER_SEPARATOR = 'modifier_separator';
public const MODIFIER_ASSIGNER = 'modifier_assigner';
public const ALLOWED_PIXEL_DENSITY = 'allowed_pixel_density';
public const ALLOWED_RESOLUTIONS = 'allowed_resolutions';
public const ALLOWED_QUALITIES = 'allowed_qualities';
public const ENCODE_QUALITY = 'encode_quality';
public const CACHE_MAX_AGE = 'cache_max_age';
protected array $config = [
self::BASE_PATH => '',
self::HOST => null,
self::MODIFIER_SEPARATOR => ',',
self::MODIFIER_ASSIGNER => ':',
self::VERSION_PARAMETER_NAME => '_v',
self::SIGNATURE_PARAMETER_NAME => '_s',
self::SIGNATURE_KEY => null,
self::SIGNATURE_ALGORITHM => 'sha256',
self::DISABLE_SIGNATURE_ON_KNOWN_MODIFIERS => false,
self::ALLOWED_PIXEL_DENSITY => [],
self::ALLOWED_RESOLUTIONS => [],
self::ALLOWED_QUALITIES => [],
self::ENCODE_QUALITY => 90,
self::CACHE_MAX_AGE => 31536000,
];
}