Permalink
Browse files

Ensure the minion module is enabled for the minion "binary"

  • Loading branch information...
1 parent c9a55bd commit 0e326d56a631b45cb63e1cb68518520af110d675 @kiall kiall committed Mar 30, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 minion
View
3 minion
@@ -96,6 +96,9 @@ if ( ! defined('KOHANA_START_MEMORY'))
// Bootstrap the application
require APPPATH.'bootstrap'.EXT;
+// Ensure the Minion module is enabled
+class_exists('Minion_Task') OR die('Please enable the Minion module for CLI support.');
+
set_exception_handler(array('Minion_Exception_Handler', 'handler'));
/**

0 comments on commit 0e326d5

Please sign in to comment.