You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DependencyInjection/FrameworkExtension.php
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -230,7 +230,7 @@ public function load(array $configs, ContainerBuilder $container)
230
230
// default in the Form and Validator component). If disabled, an identity
231
231
// translator will be used and everything will still work as expected.
232
232
if ($this->isConfigEnabled($container, $config['translator']) || $this->isConfigEnabled($container, $config['form']) || $this->isConfigEnabled($container, $config['validation'])) {
233
-
if (!class_exists('Symfony\Component\Translation\Translator') && $this->isConfigEnabled($container, $config['translator'])) {
233
+
if (!class_exists(Translator::class) && $this->isConfigEnabled($container, $config['translator'])) {
234
234
thrownewLogicException('Translation support cannot be enabled as the Translation component is not installed. Try running "composer require symfony/translation".');
235
235
}
236
236
@@ -318,14 +318,14 @@ public function load(array $configs, ContainerBuilder $container)
if ($this->isConfigEnabled($container, $config['serializer'])) {
409
-
if (!class_exists('Symfony\Component\Serializer\Serializer')) {
409
+
if (!class_exists(\Symfony\Component\Serializer\Serializer::class)) {
410
410
thrownewLogicException('Serializer support cannot be enabled as the Serializer component is not installed. Try running "composer require symfony/serializer-pack".');
411
411
}
412
412
@@ -1171,18 +1171,18 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
1171
1171
$dirs = [];
1172
1172
$transPaths = [];
1173
1173
$nonExistingDirs = [];
1174
-
if (class_exists('Symfony\Component\Validator\Validation')) {
1175
-
$r = new \ReflectionClass('Symfony\Component\Validator\Validation');
1174
+
if (class_exists(\Symfony\Component\Validator\Validation::class)) {
1175
+
$r = new \ReflectionClass(\Symfony\Component\Validator\Validation::class);
@@ -1280,7 +1280,7 @@ private function registerValidationConfiguration(array $config, ContainerBuilder
1280
1280
return;
1281
1281
}
1282
1282
1283
-
if (!class_exists('Symfony\Component\Validator\Validation')) {
1283
+
if (!class_exists(\Symfony\Component\Validator\Validation::class)) {
1284
1284
thrownewLogicException('Validation support cannot be enabled as the Validator component is not installed. Try running "composer require symfony/validator".');
1285
1285
}
1286
1286
@@ -1347,8 +1347,8 @@ private function registerValidatorMapping(ContainerBuilder $container, array $co
@@ -1409,7 +1409,7 @@ private function registerAnnotationsConfiguration(array $config, ContainerBuilde
1409
1409
return;
1410
1410
}
1411
1411
1412
-
if (!class_exists('Doctrine\Common\Annotations\Annotation')) {
1412
+
if (!class_exists(\Doctrine\Common\Annotations\Annotation::class)) {
1413
1413
thrownewLogicException('Annotations cannot be enabled as the Doctrine Annotation library is not installed.');
1414
1414
}
1415
1415
@@ -1421,7 +1421,7 @@ private function registerAnnotationsConfiguration(array $config, ContainerBuilde
1421
1421
}
1422
1422
1423
1423
if ('none' !== $config['cache']) {
1424
-
if (!class_exists('Doctrine\Common\Cache\CacheProvider')) {
1424
+
if (!class_exists(\Doctrine\Common\Cache\CacheProvider::class)) {
1425
1425
thrownewLogicException('Annotations cannot be enabled as the Doctrine Cache library is not installed.');
1426
1426
}
1427
1427
@@ -1532,7 +1532,7 @@ private function registerSecurityCsrfConfiguration(array $config, ContainerBuild
1532
1532
return;
1533
1533
}
1534
1534
1535
-
if (!class_exists('Symfony\Component\Security\Csrf\CsrfToken')) {
1535
+
if (!class_exists(\Symfony\Component\Security\Csrf\CsrfToken::class)) {
1536
1536
thrownewLogicException('CSRF support cannot be enabled as the Security CSRF component is not installed. Try running "composer require symfony/security-csrf".');
1537
1537
}
1538
1538
@@ -1647,7 +1647,7 @@ private function registerPropertyInfoConfiguration(ContainerBuilder $container,
1647
1647
1648
1648
$loader->load('property_info.php');
1649
1649
1650
-
if (interface_exists('phpDocumentor\Reflection\DocBlockFactoryInterface')) {
1650
+
if (interface_exists(\phpDocumentor\Reflection\DocBlockFactoryInterface::class)) {
0 commit comments