oliverde8 / comfy-sylius-admin-bundle
Add interfaces to edit comfy configurations in sylius admin.
Package info
github.com/oliverde8/ComfySyliusAdminBundle
pkg:composer/oliverde8/comfy-sylius-admin-bundle
Requires
- php: >=8.0
- oliverde8/comfy-bundle: ^1.2
- sylius/admin-bundle: ^1.11
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-09 13:07:20 UTC
README
This bundle adds the edition interface to the Sylius admin so that admins can configure their site using the Comfy bundle.
Check the Comfy bundle documentation here.
Requirements
- PHP >= 8.0
oliverde8/comfy-bundlesylius/admin-bundle: ^2.0
Sylius 2 only for the UI. The templates shipped here target the Sylius 2 admin UI (Bootstrap 5 / Tabler + Twig Hooks): they extend
@SyliusAdmin/shared/layout/base.html.twigand reuse the Sylius 2 CRUD partials. The^1.11part of the constraint is kept for BC of the PHP code only — the admin page will not render on Sylius 1.
Install
1. Require the bundle
composer require oliverde8/comfy-sylius-admin-bundle
2. Register the bundles (config/bundles.php)
oliverde8\ComfyBundle\oliverde8ComfyBundle::class => ['all' => true], oliverde8\ComfySyliusAdminBundle\oliverde8ComfySyliusAdminBundle::class => ['all' => true],
3. Import the bundle configuration (config/packages/comfy_sylius_admin.yaml)
Like Sylius itself and the official plugins, the bundle ships a single configuration entry point that the application imports:
imports: - { resource: "@oliverde8ComfySyliusAdminBundle/Resources/config/app/config.yml" }
That file imports every Resources/config/app/twig_hooks/**/*.yaml shipped by the bundle,
so new hook files are picked up without touching the application.
4. Add the routes (config/routes/comfy_sylius_admin.yaml)
comfy_bundle: resource: '@oliverde8ComfySyliusAdminBundle/Controller' type: attribute prefix: /admin
The configuration screen is then available at /admin/comfy/configs
(route sylius_admin_comfy_config), and a Comfy entry is added to the admin menu under
Configuration by Menu\AdminMenuListener.
5. Database
Config values are stored in the comfy_config_value table
(oliverde8\ComfyBundle\Entity\ConfigValue, attribute mapping). Generate and run a
migration:
bin/console doctrine:migrations:diff bin/console doctrine:migrations:migrate
6. Admin assets (assets/admin/entrypoint.js)
import '@vendor/oliverde8/comfy-sylius-admin-bundle/assets/admin/entrypoint';
Rebuild frontend assets (e.g. yarn encore dev) to include the bundle's admin
Translations
Config groups and config names use the comfy.<path>.name keys, where <path> is the
config path with / replaced by . (see the Comfy bundle documentation).