$eol = \DateTimeImmutable::
createFromFormat('d/m/Y', '01/'.Kernel::END_OF_LIFE
);
$this->data =
[ 'token' =>
$response->headers->
get('X-Debug-Token'
),
'symfony_version' => Kernel::VERSION,
'symfony_minor_version' =>
sprintf('%s.%s', Kernel::MAJOR_VERSION, Kernel::MINOR_VERSION
),
'symfony_lts' => 4 === Kernel::MINOR_VERSION,
'symfony_state' =>
$this->
determineSymfonyState(),
'symfony_eom' =>
$eom->
format('F Y'
),
'symfony_eol' =>
$eol->
format('F Y'
),
'env' =>
isset($this->kernel
) ?
$this->kernel->
getEnvironment() : 'n/a',
'debug' =>
isset($this->kernel
) ?
$this->kernel->
isDebug() : 'n/a',
'php_version' => \PHP_VERSION,
'php_architecture' => \PHP_INT_SIZE * 8,
'php_intl_locale' =>
class_exists(\Locale::
class, false
) && \Locale::
getDefault() ? \Locale::
getDefault() : 'n/a',
'php_timezone' =>
date_default_timezone_get(),
'xdebug_enabled' => \
extension_loaded('xdebug'
),
'apcu_enabled' => \
extension_loaded('apcu'
) &&
filter_var(\
ini_get('apc.enabled'
), \FILTER_VALIDATE_BOOL
),
'zend_opcache_enabled' => \
extension_loaded('Zend OPcache'
) &&
filter_var(\
ini_get('opcache.enable'
), \FILTER_VALIDATE_BOOL
),
'bundles' =>
[],
'sapi_name' => \PHP_SAPI,
];