Skip to content

Installation

phil/content-warnings-bundle
RequirementVersionWhy
PHP8.5 or laterThe floor the bundle declares
ext-intlanyThe current locale labels are read in
phil/content-warnings^0.1@devThe catalogue, warnings, preferences and decisions
symfony/config, symfony/dependency-injection^8.2The configuration and the bundle class
symfony/form, symfony/options-resolver^8.2The fields
symfony/service-contracts^3.6Resetting the in-memory store between requests
doctrine/dbaloptionalThe column type phil_content_warnings
symfony/http-foundationoptionalSessionWarningPreferences, the default store
twig/twigoptionalThe functions, the folded display and the form theme
composer require phil/content-warnings-bundle
// config/bundles.php
return [
    // ...
    Phil\ContentWarningsBundle\PhilContentWarningsBundle::class => ['all' => true],
];

Without configuration, the catalogue is the library's base list and warned content is folded. With Symfony UX, the Stimulus controller and its stylesheet are in assets/, declared in its package.json.