Add haproxy hooks.
Add php connection hooks.
Move hooks
Fix php publish hooks.