comparison vendor/symfony/dependency-injection/Extension/Extension.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
113 * 113 *
114 * @throws InvalidArgumentException When the config is not enableable 114 * @throws InvalidArgumentException When the config is not enableable
115 */ 115 */
116 protected function isConfigEnabled(ContainerBuilder $container, array $config) 116 protected function isConfigEnabled(ContainerBuilder $container, array $config)
117 { 117 {
118 if (!array_key_exists('enabled', $config)) { 118 if (!\array_key_exists('enabled', $config)) {
119 throw new InvalidArgumentException("The config array has no 'enabled' key."); 119 throw new InvalidArgumentException("The config array has no 'enabled' key.");
120 } 120 }
121 121
122 return (bool) $container->getParameterBag()->resolveValue($config['enabled']); 122 return (bool) $container->getParameterBag()->resolveValue($config['enabled']);
123 } 123 }