src/CLImate.php
protected function routeRemainingMethod($name, array $arguments)
    {
        // If we still have something left, let's figure out what it is
        if ($this->router->exists($name)) {
            $obj = $this->buildTerminalObject($name, $arguments);

            // If something was returned, return it
            if (is_object($obj)) {
                return $obj;
            }
        } elseif ($this->settings->exists($name)) {
            $this->settings->add($name, reset($arguments));
        // Handle passthroughs to the arguments manager.
        } else {
            // If we can't find it at this point, let's fail gracefully
            $this->out(reset($arguments));
        }
    }
protected function routeRemainingMethod($name, array $arguments)
    {
        // If we still have something left, let's figure out what it is
        if ($this->router->exists($name)) {
            $obj = $this->buildTerminalObject($name, $arguments);

            // If something was returned, return it
            if (is_object($obj)) {
                return $obj;
            }
        } elseif ($this->settings->exists($name)) {
            $this->settings->add($name, reset($arguments));
        // Handle passthroughs to the arguments manager.
        } else {
            // If we can't find it at this point, let's fail gracefully
            $this->out(reset($arguments));
        }
    }
protected function routeRemainingMethod ( $ name , array $ arguments ) { // If we still have something left, let's figure out what it is if ( $ this -> router -> exists ( $ name ) ) { $ obj = $ this -> buildTerminalObject ( $ name , $ arguments ) ; // If something was returned, return it if ( is_object ( $ obj ) ) { return $ obj ; } } elseif ( $ this -> settings -> exists ( $ name ) ) { $ this -> settings -> add ( $ name , reset ( $ arguments ) ) ; // Handle passthroughs to the arguments manager. } else { // If we can't find it at this point, let's fail gracefully $ this -> out ( reset ( $ arguments ) ) ; } }
Route anything leftover after styles were applied

@param string $name
@param array $arguments

@return object|null
Route anything leftover after styles were applied