Command.php
1 month ago
DB.php
1 month ago
Date.php
2 weeks ago
Event.php
2 weeks ago
File.php
1 month ago
Guard.php
1 month ago
Http.php
1 month ago
Log.php
1 month ago
Option.php
1 month ago
Schema.php
1 month ago
Event.php
39 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Facade proxy for EventManager dispatch operations. |
| 5 | * Exposes dispatch, dispatch_if, and dispatch_unless as static methods. |
| 6 | * Used by the Dispatchable trait and manual event firing. |
| 7 | * |
| 8 | * @package Framework |
| 9 | * @subpackage Supports\Facades |
| 10 | * @since 1.0.0 |
| 11 | */ |
| 12 | namespace Kirki\Framework\Supports\Facades; |
| 13 | |
| 14 | \defined('ABSPATH') || exit; |
| 15 | use Closure; |
| 16 | use Kirki\Framework\Facade; |
| 17 | /** |
| 18 | * Facade proxy for EventManager dispatch operations. |
| 19 | * |
| 20 | * @method static void dispatch($event) |
| 21 | * @method static void dispatch_if(Closure $boolean, $event) |
| 22 | * @method static void dispatch_unless(Closure $boolean, $event) |
| 23 | * @see Framework\Managers\EventManager |
| 24 | */ |
| 25 | class Event extends Facade |
| 26 | { |
| 27 | /** |
| 28 | * Get the accessor. |
| 29 | * |
| 30 | * @return mixed |
| 31 | * |
| 32 | * @since 1.0.0 |
| 33 | */ |
| 34 | public static function get_accessor() |
| 35 | { |
| 36 | return 'event'; |
| 37 | } |
| 38 | } |
| 39 |