# borderless/trunk/includes/library/importer.php

Borderless – Addons and Templates for Elementor, version trunk. 23 lines.

- Page: https://pluginprobe.com/plugins/borderless/trunk/code/includes/library/importer.php
- Raw: https://pluginprobe.com/plugins/borderless/trunk/raw/includes/library/importer.php
- Modified: 2022-11-12T14:29:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/borderless/trunk/code/includes/library/importer.php#L10-L20`.

```php
<?php

// don't load directly
defined( 'ABSPATH' ) || exit;

class Library_Importer {

	public function __construct() {

		require_once BORDERLESS__LIBRARY__DIR . 'vendor/autoload.php';

		$borderless_library_importer = LIBRARY\BorderlessLibraryImporter::get_instance();

		if ( defined( 'WP_CLI' ) && WP_CLI ) {
			WP_CLI::add_command( 'library list', array( 'LIBRARY\WPCLICommands', 'list_predefined' ) );
			WP_CLI::add_command( 'library import', array( 'LIBRARY\WPCLICommands', 'import' ) );
		}

	}
}

$library_importer = new Library_Importer();

```
