Closed andyexeter closed 1 year ago
When doctrine/annotations is not installed the interface (Doctrine\Common\Annotations\Reader) used by "Metadata/Driver/AttributeReader.php" also does not exists. So code will fail here as well.
I am also looking for a way for it to work without doctrine/annotations
@wimwinterberg you are right - I didn't realise doctrine/annotations
was still required by a dev dependency so didn't spot that during my testing.
I'm going to close this PR as the approach to solve the issue is incorrect.
Fixes #1344
The
annotation_reader
service is not required for attributes to be read, but if thedoctrine/annotations
package isn't present the service does not exist meaning attribute metadata is not read.This PR resolves this issue by adding the meta data type config as a parameter and modifying the check for the existence of the service so it short-circuits if the meta data type is
attribute
.