protected function runBeforeCommands($command)
    {
        $beforeCommands = $command::beforeCommands();

        if (!is_array($beforeCommands) && strlen(trim($beforeCommands)) > 0) {
            $beforeCommands = [$beforeCommands];
        }

        $this->dispatcher->pipeThrough($beforeCommands);
    }