Skip to content

Recipes for Symfony Flex #409

@covex-nn

Description

@covex-nn

This article contains a plan for creating recipes for sonata-project bundles. Each bundle must be prepared according to my proposal:

  1. It should be possible to create a default configuration, that allows to run cache:clear without errors
  2. 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

SeoBundle and CacheBundle

Maybe a default configuration could be created? Or bundle configuration is enough?

NotificationBundle

PageBundle

ClassificationBundle

TranslationBundle

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions