-
-
Notifications
You must be signed in to change notification settings - Fork 482
Description
The main blocker for recipe is a db_driver parameter - it is required and it's possible values cannot be used without installing additional packages.
We could make that parameter optional with no_driver default value, like i suggested in FriendsOfSymfony/FOSUserBundle#2708. The main goal of a default value is to pass cache:clear stage without errors and to make a recipe valid.
With a new driver some services like sonata.media.manager.media must be created, because other services depend on them. I suggest to create a new classes for that services, that will throw exceptions on usage in runtime with instructions for a developer what to do next.
With a default db_driver we will have a recipe with default configuration for MediaBundle. This configuration will be extended by recipes for specific meta package, i.e. sonata-project/media-orm-pack or sonata-project/media-phpcr-pack. All such packages will require sonata-project/media-bundle and conflict with each other. Each pack recipe will contain only Entity, Document or PHPCR classes with annotations, that will be copied into src directory during installation. So, no new maker or easy-extends bundle will be required.