-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[AsseticBundle] inotify support for --watch option in assetic:dump command #256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…available So far assetic:dump --watch would reload the entire asset manager once a second to poll for changes to formulae, e.g. in template files, or changes to the assets themselves. Now, when the inotify extension is installed it is used to setup monitoring of the paths containing these files. The kernel will then notify the console as soon as file changes are available and only then assets will be regenerated.
What about having this a core feature of Symfony. We have quite a few places where it can be used. In fact, all the component using the Config/Loader and Config/Resource classes. What do you think? |
Yeah I thought about that, could just build some generic watch mechanism from this. |
It could be very useful as Symfony component with fallback to old 1-sec watching mechanism (when inotify is not available). Many other libraries will benefit from it. Like, phpunit or Behat. Can i help somehow on this? |
Any news on integrating some sort of generic inotify support into the core? Are you guys thinking about something like a |
I've thought about some Finder integration:
|
I wanna create new |
Feel free. |
Created new PR: #391 |
Closing this PR as PR 391 is more generic. |
This PR was merged into the master branch. Discussion ---------- Fix issues with some YAML files Commits ------- 4455af7 fixed issues with some YAML files
Using inotify the command does not need to busy wait for changes in any of the files defining formulae or containing assets anymore. It configures a number of inotify watches and reacts only once a change has been performed.