forked from codeigniter4/CodeIgniter4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHooks.php
More file actions
20 lines (18 loc) · 713 Bytes
/
Copy pathHooks.php
File metadata and controls
20 lines (18 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
use CodeIgniter\Hooks\Hooks;
/**
* --------------------------------------------------------------------
* Application Hooks
* --------------------------------------------------------------------
* Hooks allow you to tap into the execution of the program without
* modifying or extending core files. This file provides a central
* location to define your hooks, though they can always be added
* at run-time, also, if needed.
*
* You create code that can execute by subscribing to events with
* the 'on()' method. This accepts any form of callable, including
* Closures, that will be executed when the hook is triggered.
*
* Example:
* Hooks::on('create', [$myInstance, 'myMethod']);
*/