public function processCommand($type, ...$arguments)
    {
        // $arguments is method1, method2 etc
        array_shift($arguments);
        switch ($type) {
            case 'addRoute':
                foreach ($arguments as $method) {
                    $this->addRoute($method);
                }
                break;
            default:
                throw new \Exception('Invalid route command.');
                break;
        }
    }
public function processCommand($type, ...$arguments)
    {
        // $arguments is method1, method2 etc
        array_shift($arguments);
        switch ($type) {
            case 'addRoute':
                foreach ($arguments as $method) {
                    $this->addRoute($method);
                }
                break;
            default:
                throw new \Exception('Invalid route command.');
                break;
        }
    }
{@inheritdoc}