The class key isn't forced, but if you do specify it, you must specify the children. Sonata does similar minus default values. I'm sure its possible to have this work as expected, i.e specify what you want changed, but the DI config API drives me crazy...


David Buchmann <notifications@github.com> a écrit :

>>      symfony_cmf_blog:
>> -        routing_post_controller:
>symfony_cmf_blog.blog_controller:viewPost
>> -        routing_post_prefix: posts
>> -        blog_basepath: /cms/content
>> -        routing_basepath: /cms/routes
>> +        use_sonata_admin:     auto
>> +        blog_basepath:  /cms/blog
>> +        class:
>> +            blog_admin:           ~ # Required
>> +            post_admin:           ~ # Required
>> +            blog:                 ~ # Required
>> +            post:                 ~ # Required
>
>ok that answers my question on the other PR. why force that? can't we
>set default values rather?
>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/symfony-cmf/symfony-cmf-docs/pull/117/files#r3788994

-- 
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.