You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a specific need regarding Puli. Basically, I would like to trigger some specific code each time a binding is updated. So far, bindings can be updated when a user runs a composer update (through the Composer plugin), or through the CLI.
What I would like to do is trigger a specific action at this time (if you remember our discussion at the Paris ForumPHP, I'm trying to trigger the compilation of a container and my binding is containing a list of service definition providers).
I think the way to go is to write a Puli plugin, but I have no idea on the classes / methods I should use to trigger some code at some point. Is there any kind of event system I can tap into? Would you do it this way or am I thinking the wrong way?
The text was updated successfully, but these errors were encountered:
Since the factory seems refreshed each time the configuration changes, I guess I could listen to this event to listen for changes in the bindings. Am I correct? If so, we can close this issue!
Hi @webmozart !
I have a specific need regarding Puli. Basically, I would like to trigger some specific code each time a binding is updated. So far, bindings can be updated when a user runs a
composer update
(through the Composer plugin), or through the CLI.What I would like to do is trigger a specific action at this time (if you remember our discussion at the Paris ForumPHP, I'm trying to trigger the compilation of a container and my binding is containing a list of service definition providers).
I think the way to go is to write a Puli plugin, but I have no idea on the classes / methods I should use to trigger some code at some point. Is there any kind of event system I can tap into? Would you do it this way or am I thinking the wrong way?
The text was updated successfully, but these errors were encountered: