baks-dev/reference-color

颜色库

安装: 113

依赖: 1

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:symfony-bundle

v7.1.7 2024-09-15 22:40 UTC

README

Version php 8.3+

颜色库 "Color"

安装

$ composer require baks-dev/reference-color

配置

要在下拉列表中显示,请将服务配置添加到配置文件中

config/packages/reference.php

<?php

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use BaksDev\Reference\Color\Choice\ReferenceChoiceColor;

return static function (ContainerConfigurator $configurator) {
	
	$services = $configurator->services()
            ->defaults()
            ->autowire(true)
            ->autoconfigure(true)
	;

	$services
            ->set(ReferenceChoiceColor::class)
            ->tag('baks.reference.choice')
	;
};

许可证 License

MIT 许可证 (MIT)。有关更多信息,请参阅许可证文件