/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/AssetMapper/ImportMap/PackageRequireOptions.php
36 строк
976 B
Ousama Ben Younes
[AssetMapper] Allow requiring raw ESM packages
05 авг 2026, 18:37
05 авг 2026, 18:37
68230e2
Код
Авторство
О чём код?
<?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\ImportMap; /** * Represents a package that should be installed or updated. * * @author Kévin Dunglas <kevin@dunglas.dev> */ final class PackageRequireOptions { public readonly string $importName; public function __construct( /** * The "package-name/path" of the remote package. */ public readonly string $packageModuleSpecifier, public readonly ?string $versionConstraint = null, ?string $importName = null, public readonly ?string $path = null, public readonly bool $entrypoint = false, public readonly bool $useEsm = true, ) { $this->importName = $importName ?: $packageModuleSpecifier; } }