idea-php-toolbox icon indicating copy to clipboard operation
idea-php-toolbox copied to clipboard

Allow invoke php code that will rebuild json metadata on code changes

Open Koc opened this issue 9 years ago • 6 comments

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?

Koc avatar Jan 05 '16 10:01 Koc

For example we track appDevDebugProjectContainer.php and execute some code when it changes

Koc avatar Jan 05 '16 10:01 Koc

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 avatar Jan 07 '16 19:01 Haehnchen

@Haehnchen sounds good, will wait for it

Koc avatar Jan 08 '16 10:01 Koc

@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.

Koc avatar Jan 18 '16 09:01 Koc

Can you use FileWatcher from PhpStorm settings?

King2500 avatar Oct 10 '16 05:10 King2500

@King2500 interesting idea, will try

Koc avatar Oct 10 '16 06:10 Koc