doctrine / DoctrinePHPCRBundle

This bundle integrates Doctrine PHPCR ODM and PHPCR backends into Symfony
http://phpcr.github.com
MIT License
156 stars 66 forks source link

repository without credentials #370

Closed dbu closed 1 year ago

dbu commented 1 year ago

with jackalope-doctrine-dbal, the credentials can theoretically be null. since https://github.com/jackalope/jackalope-doctrine-dbal/pull/419 it also practically works correctly to pass null to the Repository::login method.

adjust the DoctrinePHPCRExtension::sessionLoad when we drop jackalope 1 support to correctly handle null username and password and pass null instead of credentials with null value (which only works because PHPCR is not yet type safe, the username and password are declared as string but only in doc annotations). we should forbid in the configuration to only set username or only password - if one is set, both must be set.