Feature Request #1844

Enabling hooks in groups of files and per module patch.

Added by Jorge Torres over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:07/16/2009
Priority:UrgentDue date:
Assignee:Chris Bandy% Done:


Target version:2.4
Resolution:fixed Points:



First: Thank you all for this nice framework, I code couchsurfing.com and we are migrating our code to kohana :)

As our application is very big, migrating is a long process, and in our first migration step, we are forced to use many hooks from the original app, and then as we properly port, we disable them, we have many modules, and a single enable all does not make our life simple. we've tried to leave the system code untouched, but on this one we solved by having hooks that are enabled by simply existing on a hooks/enabled folder, then hooks can be enabled an disabled easily per application and per module.
The patch is very simple. and well be happy to have it included on your next releases so we can keep the kohana system folder intact.

single_enabled_hooks_KOV2_3_4.patch Magnifier (1.66 KB) Jorge Torres, 07/16/2009 03:07 AM

Related issues

Blocked by Kohana v2.x - Bug Report #1761: all files in hooks directories are loaded including files... Closed 06/06/2009


#1 Updated by Jeremy Bush over 5 years ago

  • Category set to Core
  • Priority changed from Normal to Low
  • Target version set to 2.4

#2 Updated by Jeremy Bush over 5 years ago

  • Status changed from New to Review

#3 Updated by Ben Rogers over 5 years ago

couldn't this also be solved by renaming the extension to something other than what is defined by EXT? this could be resolved by just fixing #1761

#4 Updated by Jeremy Bush over 5 years ago

  • Status changed from Review to Assigned
  • Assignee set to Chris Bandy
  • Priority changed from Low to Urgent

#5 Updated by Chris Bandy over 5 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

#1761 is fixed, so as Ben suggested above, you can disable hooks by changing their file extension from EXT.

Also available in: Atom PDF