/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/AssetMapper/Compressor/CompressorInterface.php
44 строки
862 B
Kévin Dunglas
[AssetMapper] add support for assets pre-compression
06 дек 2024, 16:38
06 дек 2024, 16:38
5fa3e92
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\AssetMapper\Compressor; /** * Compresses a file. * * @author Kévin Dunglas <kevin@dunglas.dev> */ interface CompressorInterface { // Loosely based on https://caddyserver.com/docs/caddyfile/directives/encode#match public const DEFAULT_EXTENSIONS = [ 'css', 'cur', 'eot', 'html', 'js', 'json', 'md', 'otc', 'otf', 'proto', 'rss', 'rtf', 'svg', 'ttc', 'ttf', 'txt', 'wasm', 'xml', ]; public function compress(string $path): void; }