It was requested lots of times: ClassMetadataFactory has to be overrideable for some frameworks to operate!
that's really great news.
but i think, the access levels of its class properties and methods should be changed from private to protected or is there are reason for not doing that?
It would make it easier to subclass it, if you p.e. only want to override one method.
No, the only methods that should be overwritten are already protected or public.
thanks for the quick answer.
i might have overlooked something, as i just grabbed the updated version.
no, the primary method to be overwritten are:
protected function newClassMetadataInstance($className)
protected function getParentClasses($name)
All the other code should not be touched as it handles the caching loading and such.
for me it's getMetadataFor :-D as i need another alias mechanism.
but don't get me wrong, i think the changes you already made are sufficent for my case... but it's confusing, therefore the comment.
for the method getParentClasses that you mentioned:
how would you access the driver property in the subclass?