twentytwo-labs / orm-feature-flag
用于管理特性标志的包
1.0.1
2024-09-05 11:47 UTC
Requires
- php: >= 8.1
- doctrine/orm: *
- twentytwo-labs/feature-flag-bundle: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- infection/infection: ^0.29
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^10.0|^11.0
- squizlabs/php_codesniffer: ^3.10
- symfony/security-bundle: ^5.4|^6.0|^7.0
This package is auto-updated.
Last update: 2024-09-05 11:54:57 UTC
README
使用 Doctrine 存储来自Twentytwo Labs Feature Flags。
配置
# config/packages/twentytwo_labs_feature_flag.yaml
twentytwo_labs_feature_flag:
managers:
admin:
factory: twenty-two-labs.feature-flags.factory.orm
options:
class: ENTITY
identifier: IDENTIFIER #default "key"
其中
ENTITY
是实现FeatureInterface
的实体IDENTIFIER
是 ENTITY 中的一个字段