} protected function execute(InputInterface
$input, OutputInterface
$output): int
{ $io =
new SymfonyStyle($input,
$output);
/** @var KernelInterface $kernel */
$kernel =
$this->
getApplication()->
getKernel();
if (method_exists($kernel, 'getBuildDir'
)) { $buildDir =
$kernel->
getBuildDir();
} else { $buildDir =
$kernel->
getCacheDir();
} $rows =
[ ['<info>Symfony</>'
],
new TableSeparator(),
['Version', Kernel::VERSION
],
['Long-Term Support', 4 === Kernel::MINOR_VERSION ? 'Yes' : 'No'
],
['End of maintenance', Kernel::END_OF_MAINTENANCE.
(self::
isExpired(Kernel::END_OF_MAINTENANCE
) ? ' <error>Expired</>' : ' (<comment>'.self::
daysBeforeExpiration(Kernel::END_OF_MAINTENANCE
).'</>)'
)],
['End of life', Kernel::END_OF_LIFE.
(self::
isExpired(Kernel::END_OF_LIFE
) ? ' <error>Expired</>' : ' (<comment>'.self::
daysBeforeExpiration(Kernel::END_OF_LIFE
).'</>)'
)],