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
).'</>)'
)],
new TableSeparator(),
['<info>Kernel</>'
],
new TableSeparator(),
['Type',
$kernel::
class],
['Environment',
$kernel->
getEnvironment()],
['Debug',
$kernel->
isDebug() ? 'true' : 'false'
],
['Charset',
$kernel->
getCharset()],
['Cache directory', self::
formatPath($kernel->
getCacheDir(),
$kernel->
getProjectDir()).' (<comment>'.self::
formatFileSize($kernel->
getCacheDir()).'</>)'
],
['Build directory', self::
formatPath($buildDir,
$kernel->
getProjectDir()).' (<comment>'.self::
formatFileSize($buildDir).'</>)'
],
['Log directory', self::
formatPath($kernel->
getLogDir(),
$kernel->
getProjectDir()).' (<comment>'.self::
formatFileSize($kernel->
getLogDir()).'</>)'
],