public function handleAlias(CommandPreRunEvent $event)
    {
        $input = $event->getInput();

        $commandName = $input->getFirstArgument();

        $aliasConfig = $this->configManager->getConfig('alias');

        if (!isset($aliasConfig[$commandName])) {
            return;
        }

        $command = $aliasConfig[$commandName];
        $command = $command .= substr($input->getRawCommand(), strlen($commandName));

        $newInput = new StringInput($command);
        $event->setInput($newInput);

        return $command;
    }