Skip to content

Reference

phil/enums-bundle
TypeRole
PhilEnumsBundleThe bundle class: its configuration, the services, and the EnumSet column types it registers when it boots.
Application\Selection\CaseSelectionA subset of an enum's cases by only, except, groups and whereMeta; fromOptions() reads it from loosely typed options.
Application\Translation\EnumTranslationThe label key, the description key, the domain, and the plain label of a case.
Application\Translation\TranslatableThe attribute that sets an enum's translation domain and key prefix.
Application\Presentation\Color, Application\Presentation\IconMeta properties of string value: the colour and icon of a badge, as names.
Application\Schema\EnumSchemaThe JSON Schema of an enum, for an OpenAPI document.
Application\TypeScript\TypeScriptExporterEnums written as TypeScript: constant objects, union types and labels.
Infrastructure\Discovery\EnumFinderThe enums declared in PHP files that the autoloader finds.
Infrastructure\Translation\EnumTranslationExtractorThe keys of translatable enums, for translation:extract.
Infrastructure\Console\DebugEnumsCommanddebug:enums.
Infrastructure\Console\ExportTypeScriptCommandphil:enums:typescript.
Infrastructure\Serializer\EnumsNormalizerWrites enum sets, enum maps, and cases with their labels; reads sets and maps back.
Infrastructure\Doctrine\EnumSetType, Infrastructure\Doctrine\EnumSetStorageThe DBAL type of an EnumSet column, and its two storages.
Infrastructure\Form\EnumSetTypeThe form type of an EnumSet.
Application\Maker\EnumBlueprintThe cases make:enum writes, with their values and labels.
Infrastructure\Maker\MakeEnummake:enum.
Infrastructure\OpenApi\NelmioEnumModelDescriberThe schema of an enum model in NelmioApiDoc.
Infrastructure\OpenApi\ApiPlatformEnumPropertyMetadataFactoryThe schema of an enum property in API Platform.
Application\Icu\IcuSelectAn ICU select message over the cases of an enum.
Infrastructure\Validator\EnumSetOf, Infrastructure\Validator\EnumSetOfValidatorThe constraint of an EnumSet, and its validator.
Infrastructure\Http\ParseEnum, Infrastructure\Http\ParsedEnumValueResolverThe controller argument attribute, and its resolver.
Infrastructure\ExpressionLanguage\EnumsExpressionProviderenum_meta(), enum_in_group(), enum_from().
Infrastructure\Workflow\EnumWorkflowsThe state machine configuration of an enum's transitions.
Infrastructure\Console\ExportIcuCommandphil:enums:icu.
Infrastructure\Console\CheckSetColumnsCommandphil:enums:check-sets.
Infrastructure\Translation\AsTranslatableEnumTraittrans() and translatableDescription() for an enum that implements TranslatableInterface.
Infrastructure\Translation\TranslatableTextA key in a domain, translated when rendered.
Infrastructure\Form\EnumTypeExtensionThe EnumType options group, only, except, where_meta, without_deprecated, group_by_meta, preferred_group, and the default choice label.
Infrastructure\Validator\EnumCaseThe constraint: a value that is a case of a selection.
Infrastructure\Validator\EnumCaseValidatorIts validator.
Infrastructure\Validator\Transition, Infrastructure\Validator\TransitionValidatorThe constraint of a change of state, and its validator.
Infrastructure\Twig\EnumsExtensionenum_cases(), enum_label, enum_description, enum_meta, enum_badge.