Command.php
1 month ago
DB.php
1 month ago
Date.php
1 week ago
Event.php
1 week 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
Command.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Facade proxy for the CommandManager WP-CLI registration service. |
| 5 | * Exposes register for binding artisan-style commands under the kirki prefix. |
| 6 | * Resolves from the command container binding. |
| 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 Kirki\Framework\Facade; |
| 16 | /** |
| 17 | * Facade proxy for the CommandManager WP-CLI registration service. |
| 18 | * |
| 19 | * @method static void register(string $command_name, $callback) |
| 20 | * @see \Framework\Core\Console\CommandManager |
| 21 | */ |
| 22 | class Command extends Facade |
| 23 | { |
| 24 | /** |
| 25 | * Get the accessor. |
| 26 | * |
| 27 | * @return string |
| 28 | * |
| 29 | * @since 1.0.0 |
| 30 | */ |
| 31 | public static function get_accessor() |
| 32 | { |
| 33 | return 'command'; |
| 34 | } |
| 35 | } |
| 36 |