I'm building a new bundle for my Symfony 4.2 application and I want to run a specific code only once after the bundle installation to set up some skeleton class in the root project. Like the maker bundle but without manual interaction. The installed bundle should modify existing configuration yaml of another bundle (of course, once after installed).
I've tried to use the bundle's composer.json script section without luck. I've not found any references in the official documentation how to solve this.
Are there any method to solve this?