<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files.  Please see the user guide for info:
|
|	https://codeigniter.com/user_guide/general/hooks.html
|
*/

/**
 * License Verification Hook
 * Checks license validity on every request (with caching to minimize overhead)
 * Runs after controller is instantiated but before method is called
 */
$hook['post_controller_constructor'] = array(
    'class'    => 'License_hook',
    'function' => 'verify_license',
    'filename' => 'License_hook.php',
    'filepath' => 'hooks',
    'params'   => array()
);
