oroinc / platform

Main OroPlatform package with core functionality.
Other
627 stars 351 forks source link

Bundle-less Actions Config Not Merged #1114

Open jimohalloran opened 3 months ago

jimohalloran commented 3 months ago

Summary
If I create more than one YAML file in config/actions/ all files are loaded, but only the last one is used.

Steps to reproduce
Create a file called config/actions/file1.yml and define an action for a route. Note that the action appears in the UI for that route. Now create a second file called config/actions/file2.yml and define another action for the same route.

Actual Result The action defined in file1.yml has disappeared, and only the action define in file2.yml is visible.

Expected Result
Expected that both actions would be visible.

Details about your environment

Additional information
If I have more than one YAML file in the config/actions/ folder all are loaded, but when \Oro\Bundle\ActionBundle\Configuration\ConfigurationProvider assembles them together into a single array, the content of each YAML file overwrites the previous file. The issue occurs in the getRawConfigs function at line 82, as all of the $resources have the same bundleClass (AppKernel).