<?php

declare (strict_types=1);
namespace RectorPrefix20210809\Symplify\EasyTesting\Console;

use RectorPrefix20210809\Symfony\Component\Console\Application;
use RectorPrefix20210809\Symfony\Component\Console\Command\Command;
use RectorPrefix20210809\Symplify\PackageBuilder\Console\Command\CommandNaming;
final class EasyTestingConsoleApplication extends \RectorPrefix20210809\Symfony\Component\Console\Application
{
    /**
     * @param Command[] $commands
     */
    public function __construct(\RectorPrefix20210809\Symplify\PackageBuilder\Console\Command\CommandNaming $commandNaming, array $commands)
    {
        foreach ($commands as $command) {
            $commandName = $commandNaming->resolveFromCommand($command);
            $command->setName($commandName);
            $this->add($command);
        }
        parent::__construct('Easy Testing');
    }
}
