Skip to content

Commit

Permalink
[TASK] Prepare release 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Jan 7, 2021
1 parent f6f704e commit 54438e3
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Ssch\TYPO3Rector\Console;

use Composer\XdebugHandler\XdebugHandler;
use Jean85\PrettyVersions;
use Rector\ChangesReporting\Output\CheckstyleOutputFormatter;
use Rector\ChangesReporting\Output\JsonOutputFormatter;
use Rector\Core\Bootstrap\NoRectorsLoadedReporter;
Expand All @@ -19,7 +18,6 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\Exception\OutOfBoundsException;
use Symplify\PackageBuilder\Console\Command\CommandNaming;
use Symplify\SmartFileSystem\SmartFileInfo;
use Throwable;
Expand All @@ -31,6 +29,11 @@ final class Application extends SymfonyApplication
*/
private const NAME = 'TYPO3 Rector';

/**
* @var string
*/
private const VERSION = '0.8.1';

/**
* @var Configuration
*/
Expand All @@ -50,13 +53,7 @@ public function __construct(
CommandNaming $commandNaming,
array $commands = []
) {
try {
$version = PrettyVersions::getVersion('ssch/typo3-rector')->getPrettyVersion();
} catch (OutOfBoundsException $outOfBoundsException) {
$version = 'Unknown';
}

parent::__construct(self::NAME, $version);
parent::__construct(self::NAME, self::VERSION);

foreach ($commands as $command) {
$commandName = $commandNaming->resolveFromCommand($command);
Expand Down

0 comments on commit 54438e3

Please sign in to comment.