HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /volume1/web/tom-marchisa/wp-content/plugins/nextgen-gallery/src/WPCLI/Manager.php
<?php

namespace Imagely\NGG\WPCLI;

/**
 * WP-CLI command manager for NextGEN Gallery.
 *
 * Registers and manages WP-CLI commands for NextGEN Gallery operations.
 */
class Manager {

	/**
	 * Registers all NextGEN Gallery WP-CLI commands.
	 */
	public static function register() {
		/**
		 * Add album command.
		 *
		 * @noinspection PhpUndefinedClassInspection
		 */
		\WP_CLI::add_command( 'ngg album', '\Imagely\NGG\WPCLI\Album' );

		/**
		 * Add cache command.
		 *
		 * @noinspection PhpUndefinedClassInspection
		 */
		\WP_CLI::add_command( 'ngg cache', '\Imagely\NGG\WPCLI\Cache' );

		/**
		 * Add gallery command.
		 *
		 * @noinspection PhpUndefinedClassInspection
		 */
		\WP_CLI::add_command( 'ngg gallery', '\Imagely\NGG\WPCLI\Gallery' );

		/**
		 * Add image command.
		 *
		 * @noinspection PhpUndefinedClassInspection
		 */
		\WP_CLI::add_command( 'ngg image', '\Imagely\NGG\WPCLI\Image' );

		/**
		 * Add notifications command.
		 *
		 * @noinspection PhpUndefinedClassInspection
		 */
		\WP_CLI::add_command( 'ngg notifications', '\Imagely\NGG\WPCLI\Notifications' );

		/**
		 * Add settings command.
		 *
		 * @noinspection PhpUndefinedClassInspection
		 */
		\WP_CLI::add_command( 'ngg settings', '\Imagely\NGG\WPCLI\Settings' );
	}
}