1 | <?php |
||
16 | class CSS extends Generic |
||
17 | { |
||
18 | /** CSS url() matching pattern */ |
||
19 | const PAT_URL = '/url\s*\(\s*(\'|\")*(?<url>[^\'\"\)]+)\s*(\'|\")*\)/i'; |
||
20 | |||
21 | /** @var Module URL resolving module */ |
||
22 | protected $resolver; |
||
23 | |||
24 | /** @var string[] Collection of ignored file extensions */ |
||
25 | protected $ignoredExtensions = array('php', 'js', 'md', 'map', 'dbs', 'vphp', 'less', 'gz', 'lock', 'json', 'sql', 'xml', 'yml'); |
||
26 | |||
27 | /** |
||
28 | * @param Compressor $compressor Pointer to parent compressing object |
||
29 | * @param Module $compressor URL resolving module |
||
30 | * @param string[] $ignoredExtensions Collection of ignored file extensions |
||
31 | * @param string[] $ignoredFiles Collection of ignored files |
||
32 | * @param string[] $ignoredFolders Collection of ignored folders |
||
33 | */ |
||
34 | public function __construct( |
||
45 | |||
46 | /** |
||
47 | * Update file resource |
||
48 | * @param string $fromFilePath Source file path |
||
49 | * @param string $toFilePath Destination file path |
||
50 | */ |
||
51 | protected function update($fromFilePath, $toFilePath) |
||
78 | } |
||
79 |