symfony-cmf / sonata-phpcr-admin-integration-bundle

Symfony CMF sonata PHPCR admin implementations
https://cmf.symfony.com
5 stars 20 forks source link

Make Admin extensions available without enabling each admin #134

Open ElectricMaxxx opened 6 years ago

ElectricMaxxx commented 6 years ago

I would like to challange the current "enabling strategy". Currently we enable each admin domain (core, content, ...) by configuration. Doing so its admin services are enabled/visible and its extensions. As the admins are for example purpose only, but the extensions are really helpful for custom admins, i would like to suggest to enable all extensions by default.

dbu commented 6 years ago

i can get behind that idea. so extensions are always loaded if their respective bundle is available, but the actual admins must be enabled as before so that they don't just show up in the admin interface?

ElectricMaxxx commented 6 years ago

So the extensions are available even when their bundles arn't "activated" in our configuration here?

dbu commented 6 years ago

that was your proposal, right? i think its fine. its just extensions that become available. while the actual admins will show up on the default dashboard, which might not be wanted, as you say.

ElectricMaxxx commented 6 years ago

I want to also use this bundle to use the admin extensions without the admin we propose as an example here.

So i want to use the core extension (publish workflow) without doing a

sonata_admin:
    bundles:
         core: ~

(btw: core does not have own admins, extensions only). I want them available when core-bundle and sonata-admin-integration is available.

dbu commented 6 years ago

cool, then i think we agree. this totally makes sense to me.