src/TerminalObject/Router/Router.php
public function execute($name, $arguments)
    {
        $router = $this->getRouter($name);

        $router->output($this->output);

        $obj = $this->getObject($router, $name, $arguments);

        $obj->parser($this->parser);
        $obj->util($this->util);

        // If the object needs any settings, import them
        foreach ($obj->settings() as $obj_setting) {
            $setting = $this->settings->get($obj_setting);

            if ($setting) {
                $obj->importSetting($setting);
            }
        }

        return $router->execute($obj);
    }
public function execute($name, $arguments)
    {
        $router = $this->getRouter($name);

        $router->output($this->output);

        $obj = $this->getObject($router, $name, $arguments);

        $obj->parser($this->parser);
        $obj->util($this->util);

        // If the object needs any settings, import them
        foreach ($obj->settings() as $obj_setting) {
            $setting = $this->settings->get($obj_setting);

            if ($setting) {
                $obj->importSetting($setting);
            }
        }

        return $router->execute($obj);
    }
public function execute ( $ name , $ arguments ) { $ router = $ this -> getRouter ( $ name ) ; $ router -> output ( $ this -> output ) ; $ obj = $ this -> getObject ( $ router , $ name , $ arguments ) ; $ obj -> parser ( $ this -> parser ) ; $ obj -> util ( $ this -> util ) ; // If the object needs any settings, import them foreach ( $ obj -> settings ( ) as $ obj_setting ) { $ setting = $ this -> settings -> get ( $ obj_setting ) ; if ( $ setting ) { $ obj -> importSetting ( $ setting ) ; } } return $ router -> execute ( $ obj ) ; }
Execute a terminal object using given arguments

@param string $name
@param mixed  $arguments

@return null|\League\CLImate\TerminalObject\Basic\BasicTerminalObjectInterface
Execute a terminal object using given arguments