install an orbit module

@param array 		$params
969952
public function action_install( $params ) {
		
		$path = $params[0];
		
		// get target directory
		$target_dir = \CCArr::get( 'target', $params, ORBITPATH );
		
		if ( empty( $path ) ) {
			CCCli::line( 'no ship path given.', 'red' ); return;
		}
		
		/*
		 * direct install if starting with /
		 */
		if ( substr( $path, 0, 1 ) == '/' ) {
			
			// fix path
			if ( substr( $path, -1 ) != '/' ) {
				$path .= '/';
			}
			
			// is directory
			if ( !is_dir( $path ) ) {
				CCCli::line( 'could not find a ship at path: '.$path, 'red' ); return;
			}
			
			// define the target
			$target = $target_dir.basename( $path ).'/';
			
			// check if we already have an directory with the same name
			if ( $target != $path && is_dir( $target ) ) {
				if ( !CCCli::confirm( "there is already a ship with this name. do you want to overwrite?", true ) ) {
					return;
				}
			}
			
			// are ya serius..
			if ( !CCCli::confirm( "are you sure you want to install this ship?", true ) ) {
				return;
			}
			
			// move the directory
			if ( $target != $path ) {
				rename( $path, $target );
			}

			// run the installer
			try {
				\CCOrbit::install( $target );
			}
			catch ( \Exception $e ) {
				CCCli::line( $e->getMessage(), 'red' ); 
				CCCli::line( 'ship installation failure.', 'red' ); return;
			}
			
			// we are done
			CCCli::line( 'ship installation succeeded', 'green' );
			
			return;
		}
		
		// check if the module is in our orbit path
		if ( is_dir( ORBITPATH.$path ) ) {
			
			// there is a ship yay
			CCCli::line( 'found ship at path: '.ORBITPATH.$path, 'green' );
			
			return static::action_install( array( ORBITPATH.$path, 'target' => \CCArr::get( 'target', $params ) ) );
		}
		
		// check if the module is in CCF dir
		if ( is_dir( CCROOT.$path ) ) {
			
			// there is a ship yay
			CCCli::line( 'found ship at path: '.CCROOT.$path, 'green' );
			
			return static::action_install( array( CCROOT.$path, 'target' => \CCArr::get( 'target', $params ) ) );
		}

		// search the repository for this ship
		CCCli::line( 'searching the repositories for: '.$path.' ...', 'cyan' );
	}
974981
public function install($opts = ['prod' => false])
    {
        $prod = isset($opts['prod']) && $opts['prod'] ? true : false;
        $this->info('Installing project dependencies');
        $this->composerInstall(['prod' => $prod]);
        $this->info('Project dependencies installed');
    }
1195771
public function install(array $signals)
    {
        if (self::isSupported()) {
            $callback = [$this, 'dispatchSignal'];
            foreach ($signals as $signal) {
                \pcntl_signal($signal, $callback);
            }
        };
    }
470170
public function addModule($module, array $options = NULL) {
        // We need to try the user's modules first, so they can override built-in ones.
        $full_module = '\\modules\\' . strtolower($module) . '\\' . ucwords($module);
        if(!class_exists($full_module)) {
            $full_module = 'assegai\\modules\\' . $module . '\\' . ucwords($module);
            if(!class_exists($full_module)) { // Very last chance.
                $full_module = 'Module_' . $module;
            }
        }

        if($full_module::instanciate())
        {
            $module_instance = null;
            $module_injector = new injector\Container($this->injector);
            $deps = array();
            
            if(method_exists($full_module, 'dependencies')) {
                $deps = $full_module::dependencies();
            } else { // We'll make up a dependency for you.
                $deps = array(
                    array(
                        'name' => 'module_' . $module,
                        'class' => $full_module,
                        'mother' => 'module',
                    ),
                );
            }

            $module_injector->loadConf($deps);
            $module_instance = $module_injector->give('module_' . $module);
            $module_instance->setDependencies($this->server, $this);
            $module_instance->setOptions($options);

            $this->add_to_list($module, $module_instance);
        }
    }
458597
public function loadParams(array $params)
    {
        $this->arguments = array();
        $this->options = array();

        foreach ($params as $param) {
            if (strpos($param, '-') !== false) {
                $this->options[] = $this->extractOption($param);
            } else {
                $this->arguments[] = $param;
            }
        }

        return $this;
    }
888304
protected function set_params( $params ) {
		$this->requirements_details_url = ! empty( $params['requirements_details_url'] ) ? esc_url( trim( (string) $params['requirements_details_url'] ) ) : $this->requirements_details_url;
		$this->version_compare_operator = ! empty( $params['version_compare_operator'] ) ? (string) $params['version_compare_operator'] : $this->version_compare_operator;
		$this->not_valid_actions        = ! empty( $params['not_valid_actions'] ) ? (array) $params['not_valid_actions'] : $this->not_valid_actions;
		$this->show_valid_results       = isset( $params['show_valid_results'] ) ? (bool) $params['show_valid_results'] : $this->show_valid_results;
	}
876418
public function addParamsNavStart($params = [])
    {
        if (is_array($params) && !empty($params))
        {
            $this->navStartParams = array_merge(is_array($this->navStartParams) ? $this->navStartParams : array(), $params);
        }
    }
195048
public function install(array $options = [], array $packageNames = [])
    {
        $options = $this->getInstallResolver()->resolve($options);
        $installer = $this->buildInstaller($options);
        $installer->setUpdateWhitelist($packageNames);
        $status = $installer->run();

        if ($status !== 0) {
            throw new \RuntimeException(sprintf(
                'An error has been occurred with code: %s while resolving dependencies.',
                $status
            ));
        }
    }
1325710
public function addModule($module, array $options = NULL) {
		$this->add_to_list($module, new $module($this->server, $this, $options));
    }
894960
public function setQueryParams(array $params)
    {
        $uri = $this->guzzleRequest->getUri()->withQuery(\GuzzleHttp\Psr7\build_query($params));
        $this->guzzleRequest = $this->guzzleRequest->withUri($uri);
    }
726073
public function setParams(array $params = [])
    {

        //Process Params
        $params = $this->processParams($params);

        //Set the params
        $this->params = $params;

        return $this;
    }
1360810
public function setParameters(array $params)
	{
		foreach ($params as $paramName => $paramValue)
		{
			$this->setParameter($paramName, $paramValue);
		}
	}
589595
public function configure(array $params): void
    {
        $dbHelperClass = DBHelper\DriverGuesser::getDBHelper($params['driver']);

        // Set specific options
        $params['driverOptions'] = $dbHelperClass::getDriverOptions();
        $this->conn = DriverManager::getConnection($params, new DbalConfiguration());
        $this->conn->setFetchMode(\Doctrine\DBAL\FetchMode::ASSOCIATIVE);

        $this->dbHelper = new $dbHelperClass($this->conn);
    }
397753
public function init(array $params = array()) {
        if (count($params) !== count($this->_config)) {
            throw new Garp_Browsebox_Exception('Number of parameters does not match the number of required parameters in filter "'.$this->getId().'"');
        }
        $this->_values = $params;
    }
791077
public function add($params) 
    {
        $response = $this->client->update(
            $this->uri,
            $params
        );

        return json_encode($response->getContent(), JSON_FORCE_OBJECT);
    }
470865
protected function setUrl($params)
    {
        curl_setopt($this->client->ch, CURLOPT_URL, Constants::API_URL . trim($params, '/'));
    }
62810
public function setModules(array $modules)
    {
        $this->modules = array();

        foreach ($modules as $module) {
            $this->addModule($module);
        }

        return $this;
    }