-
-
Notifications
You must be signed in to change notification settings - Fork 43
Description
This article contains a plan for creating recipes for sonata-project bundles. Each bundle must be prepared according to my proposal:
- It should be possible to create a default configuration, that allows to run
cache:clear
without errors - It should be possible to create an additional configuration for each supported persistence mechanism, that will make a bundle fully functional after installing some required additional packages
A default configuration will be a bundle's recipe. Additional configuration will be a recipe for a new package. This new package, a pack
, will contain composer.json with all requirements for particular persistence mechanism.
A bundle, that will be installed without a pack (and without additional configuration) can throw exceptions with instructions for developer how to set it up with installing a pack.
MediaBundle
- Update dependencies, Update dependencies SonataMediaBundle#1417
- Make a
db_driver
configuration parameter optional withno_driver
default value, Make a db_driver configuration parameter optional with no_driver default value SonataMediaBundle#1420 - Create default configuration and a recipe, Add sonata-project/media-bundle recipe symfony/recipes-contrib#375
- Create new repository for
sonata-project/media-orm-pack
- Create additional configuration for ORM, create a recipe, Add sonata-project/media-orm-pack recipe symfony/recipes-contrib#385
- Create new repository for
sonata-project/media-odm-pack
- Create additional configuration for MongoDB ODM, create a recipe, Add sonata-project/media-odm-pack recipe symfony/recipes-contrib#410
- Create new repository for
sonata-project/media-phpcr-pack
- Create additional configuration for PHPCR, create a recipe
SeoBundle and CacheBundle
Maybe a default configuration could be created? Or bundle configuration is enough?
NotificationBundle
- Refactor bundle configuration, Refactor bundle configuration to create recipe for Flex SonataNotificationBundle#314
- Update dependencies, Move enqueue/amqp-lib to require-dev section SonataNotificationBundle#327
- Create default configuration and a recipe, Add sonata-project/notification-bundle recipe symfony/recipes-contrib#302
- Create new repository for
sonata-project/notification-orm-pack
- Create additional configuration for ORM, create a recipe, Add sonata-project/notification-orm-pack recipe symfony/recipes-contrib#384
PageBundle
- Auto-register sonata.page.router, Auto-register sonata.page.router SonataPageBundle#960
- Update bundle dependencies in composer.json, Require sonata-project/doctrine-orm-admin-bundle SonataPageBundle#980
- Wait until symfony-cmf/routing-bundle will be released with Symfony ^4.0 dependencies
- Create default configuration and a recipe, Add recipe for sonata-project/page-bundle symfony/recipes-contrib#397
ClassificationBundle
- Prepare bundle for recipe, Force use translation strings for classification entities SonataClassificationBundle#403
- Create default configuration and a recipe, Add recipe for sonata-project/classification-bundle symfony/recipes-contrib#389
TranslationBundle
- Prepare bundle for recipe, Check if 'sonata_translation.checker.translatable' service exists SonataTranslationBundle#233
- Create default configuration and a recipe, Add recipe for sonata-project/translation-bundle symfony/recipes-contrib#400
ArticleBundle
- Create default configuration and a recipe
TimelineBundle
- Create default configuration and a recipe
CommentBundle
- Create a recipes for FOSCommentBundle first ??
DashboardBundle
- Create default configuration and a recipe
UserBundle and NewsBundle
It is not possible to create a recipe for these bundles, because they depends on FOSUserBundle, that does have and cannot have a recipe.
FormatterBundle
egeloen/ckeditor-bundle
should be replaced with friendsofsymfony/ckeditor-bundle
, but it is a BC break
ClassificationMedia
No plans, a recipe will be possible after next major release of MediaBundle and ClassificationBundle