Closed siamskoi closed 2 years ago
Happens because the config override happens in "common" group while the original resides in "web". As a first step @devanych fixed app and app-api templates to use "web" group. But we need to think more either about allowing such override or about having a better error message.
Redefinition does not work for the interface DataResponseFactoryInterface
What steps will reproduce the problem?
1) Create project
composer create-project --prefer-dist --stability=dev yiisoft/app yii-test
2) addDataResponseFactoryInterface::class => DataResponseFactory::class
toconfig/common/psr17.php
What is the expected result?
Worked app
What do you get instead?
ErrorException:
Additional info