protected function loadCliCommands()
    {
        if (defined('WP_CLI') && WP_CLI && ($config = $this->loadConfigFile('commands.php'))) {
            foreach ($config as $command => $className) {
                \WP_CLI::add_command($command, $className);
            }
        }

        return $this;
    }
protected function loadCliCommands()
    {
        if (defined('WP_CLI') && WP_CLI && ($config = $this->loadConfigFile('commands.php'))) {
            foreach ($config as $command => $className) {
                \WP_CLI::add_command($command, $className);
            }
        }

        return $this;
    }
protected function loadCliCommands ( ) { if ( defined ( 'WP_CLI' ) && WP_CLI && ( $ config = $ this -> loadConfigFile ( 'commands.php' ) ) ) { foreach ( $ config as $ command => $ className ) { \ WP_CLI :: add_command ( $ command , $ className ) ; } } return $ this ; }
Load custom WP CLI commands from configuration files.

@return \Tev\Plugin\Loader This, for chaining
Load custom WP CLI commands from configuration files .