Skip to content

Commit cdddb04

Browse files
authored
Merge pull request #80 from nicolas-grekas/fix-deprec
Fix BC layer referencing deprecated classes
2 parents 5fde0b8 + f8f49ec commit cdddb04

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

lib/Doctrine/Persistence/AbstractManagerRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,4 @@ private function selectManager(string $persistentObjectName, ?string $persistent
248248
}
249249

250250
class_exists(\Doctrine\Common\Persistence\AbstractManagerRegistry::class);
251-
interface_exists(\Doctrine\Common\Persistence\ObjectManager::class);
251+
interface_exists(ObjectManager::class);

lib/Doctrine/Persistence/Mapping/AbstractClassMetadataFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,5 +416,5 @@ private function getRealClass(string $class) : string
416416
}
417417

418418
class_exists(\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory::class);
419-
interface_exists(\Doctrine\Common\Persistence\Mapping\ClassMetadata::class);
420-
interface_exists(\Doctrine\Common\Persistence\Mapping\ReflectionService::class);
419+
interface_exists(ClassMetadata::class);
420+
interface_exists(ReflectionService::class);

lib/Doctrine/Persistence/Mapping/Driver/FileDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@ public function setLocator(FileLocator $locator)
196196
}
197197

198198
class_exists(\Doctrine\Common\Persistence\Mapping\Driver\FileDriver::class);
199-
interface_exists(\Doctrine\Common\Persistence\Mapping\Driver\FileLocator::class);
199+
interface_exists(FileLocator::class);

lib/Doctrine/Persistence/Mapping/Driver/MappingDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ public function isTransient($className);
3838
}
3939

4040
interface_exists(\Doctrine\Common\Persistence\Mapping\ClassMetadata::class);
41-
interface_exists(\Doctrine\Common\Persistence\Mapping\Driver\MappingDriver::class);
41+
interface_exists(\Doctrine\Persistence\Mapping\Driver\MappingDriver::class);

lib/Doctrine/Persistence/Mapping/Driver/MappingDriverChain.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,4 @@ public function isTransient($className)
146146
}
147147

148148
class_exists(\Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain::class);
149-
interface_exists(\Doctrine\Common\Persistence\Mapping\ClassMetadata::class);
149+
interface_exists(ClassMetadata::class);

lib/Doctrine/Persistence/Mapping/Driver/PHPDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ protected function loadMappingFile($file)
4646
}
4747

4848
class_exists(\Doctrine\Common\Persistence\Mapping\Driver\PHPDriver::class);
49-
interface_exists(\Doctrine\Common\Persistence\Mapping\ClassMetadata::class);
49+
interface_exists(ClassMetadata::class);

lib/Doctrine/Persistence/Mapping/Driver/StaticPHPDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ public function isTransient($className)
131131
}
132132

133133
class_exists(\Doctrine\Common\Persistence\Mapping\Driver\StaticPHPDriver::class);
134-
interface_exists(\Doctrine\Common\Persistence\Mapping\ClassMetadata::class);
134+
interface_exists(ClassMetadata::class);

lib/Doctrine/Persistence/NotifyPropertyChanged.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ public function addPropertyChangedListener(PropertyChangedListener $listener);
2222
}
2323

2424
interface_exists(\Doctrine\Common\NotifyPropertyChanged::class);
25-
interface_exists(\Doctrine\Common\PropertyChangedListener::class);
25+
interface_exists(PropertyChangedListener::class);

lib/Doctrine/Persistence/ObjectManagerAware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ public function injectObjectManager(ObjectManager $objectManager, ClassMetadata
3030
}
3131

3232
interface_exists(\Doctrine\Common\Persistence\Mapping\ClassMetadata::class);
33-
interface_exists(\Doctrine\Common\Persistence\ObjectManager::class);
33+
interface_exists(ObjectManager::class);

0 commit comments

Comments
 (0)