The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

Slim v3 and hooks concept's Avatar

09 Aug, 2015 11:26 AM

Guys hi! Thanks for great microframework -- its really nice and powerfull.
Now i use v 2.6 with hooks. I'm using them for internal app internal events handling. For example for some app-logic triggers.

I read some intro for v3 and find that hooks concept was removed because of middleware start duplicate this functionality =\
But there is no any information how can i recreate applyHook() functionality for innternals triggers.

Can you point help me how or where i can read about it. Maybe hook functionallity will be saved as external git-switchable functionallity as logging?

  1. 1 Posted by Rob Allen on 10 Aug, 2015 08:15 AM

    Rob Allen's Avatar

    Do you mean for writing your own hooks to attach to and then execute?

    if so, then you should use an event manager such as Zend\EventManager, League\Event or similar library.

  2. 2 Posted by on 10 Aug, 2015 09:30 AM's Avatar

    Aha! That's what I need, thx!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac