function DeprecationHandler::legacySymfonyConfiguration
Returns the legacy configuration provided via Symfony env variable.
For historical reasons, the configuration can be stored in the SYMFONY_DEPRECATIONS_HELPER environment variable.
Return value
array An array of configuration variables.
1 call to DeprecationHandler::legacySymfonyConfiguration()
- DeprecationHandler::preBootstrap in core/
tests/ Drupal/ TestTools/ Extension/ DeprecationBridge/ DeprecationHandler.php - Load configuration and setup.
File
-
core/
tests/ Drupal/ TestTools/ Extension/ DeprecationBridge/ DeprecationHandler.php, line 125
Class
- DeprecationHandler
- Drupal's PHPUnit extension to manage code deprecation.
Namespace
Drupal\TestTools\Extension\DeprecationBridgeCode
private static function legacySymfonyConfiguration() : array {
$environmentVariable = getenv('SYMFONY_DEPRECATIONS_HELPER');
if ($environmentVariable === FALSE) {
return [];
}
if ($environmentVariable === 'disabled') {
return [
'enableProjectIgnores' => FALSE,
'enableDebugClassLoader' => FALSE,
];
}
parse_str($environmentVariable, $configuration);
$ret = [
'enableProjectIgnores' => TRUE,
'enableDebugClassLoader' => TRUE,
];
if (isset($configuration['ignoreFile'])) {
$ret['projectIgnoreFile'] = $configuration['ignoreFile'];
}
return $ret;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.