mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #12131] Feature: add support for ClassLocator
#13504
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/12131
State: closed
Merged: Yes
In the scope of https://github.com/doctrine/persistence/pull/433 (available from
doctrine/persistence>= 4.1) there was addedColocatedMappingDriver::$classLocator(ClassLocator) property, which allows passing any instance ofClassLocatorfor the mapping driver to use. This commit integrates those changes intoAttributeDriver.Since
doctrine/ormmaintains the support fordoctrine/persistenceof older versions, tests ensure thatClassLocatoractually exists.The old paths' behaviour can be adapted into the new by passing
FileClassLocatorintoAttributeDriver(seeFileClassLocator::createFromDirectories($directoryPaths)).The current PR supersedes https://github.com/doctrine/orm/pull/12106 .
There's also a PR for ODM https://github.com/doctrine/mongodb-odm/pull/2802