idea-php-toolbox
idea-php-toolbox copied to clipboard
Allow invoke php code that will rebuild json metadata on code changes
Use case: I have coded console command which extract some information from code (services by tags for example) and generates data for json provider.
For getting it work, we should execute console command each time after xml/yml services changes. Is it possible invoke some php code when files are changed?
For example we track appDevDebugProjectContainer.php and execute some code when it changes
you can expect a simple webserver inside PhpStorm where you can push your data. just need to move code https://github.com/Haehnchen/idea-php-symfony2-plugin/commits/feature/server-storage
use kernel.terminate, cache warmer, ... event to refill plugin
@Haehnchen sounds good, will wait for it
@Haehnchen can you add some documentation about server feature? Currently you only added routes, but would be great add some examples what we should send to them.
Can you use FileWatcher from PhpStorm settings?
@King2500 interesting idea, will try