| 1 |
<?php |
| 2 |
|
| 3 |
// don't load directly |
| 4 |
defined( 'ABSPATH' ) || exit; |
| 5 |
|
| 6 |
class Library_Importer { |
| 7 |
|
| 8 |
public function __construct() { |
| 9 |
|
| 10 |
require_once BORDERLESS__LIBRARY__DIR . 'vendor/autoload.php'; |
| 11 |
|
| 12 |
$borderless_library_importer = LIBRARY\BorderlessLibraryImporter::get_instance(); |
| 13 |
|
| 14 |
if ( defined( 'WP_CLI' ) && WP_CLI ) { |
| 15 |
WP_CLI::add_command( 'library list', array( 'LIBRARY\WPCLICommands', 'list_predefined' ) ); |
| 16 |
WP_CLI::add_command( 'library import', array( 'LIBRARY\WPCLICommands', 'import' ) ); |
| 17 |
} |
| 18 |
|
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
$library_importer = new Library_Importer(); |
| 23 |
|