Skip to content

Convert configs from xml to php#412

Open
alexander-schranz wants to merge 3 commits intodoctrine:sf8from
alexander-schranz:enhancement/convert-config
Open

Convert configs from xml to php#412
alexander-schranz wants to merge 3 commits intodoctrine:sf8from
alexander-schranz:enhancement/convert-config

Conversation

@alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Feb 7, 2026

Targets: #410

@alexander-schranz alexander-schranz force-pushed the enhancement/convert-config branch 2 times, most recently from cf5f98e to 5ffe40f Compare February 7, 2026 16:57
@alexander-schranz alexander-schranz force-pushed the enhancement/convert-config branch from 5ffe40f to e892872 Compare February 7, 2026 16:58
@alexander-schranz
Copy link
Contributor Author

@dbu maybe you want already merge this into the sf8 branch. Still doctrine/phpcr-odm#881 would be require to forward with the upgrade.

@dbu
Copy link
Member

dbu commented Feb 9, 2026

thanks!
regarding the phpstan failures: do you know the policy/best practices for optional dependencies? should we not define services when the class does not exist? and i guess it would make sense to add all optional dependencies for the phpstan check, to ensure there are no typos there.

@alexander-schranz
Copy link
Contributor Author

alexander-schranz commented Feb 9, 2026

@dbu Optional Dependencies should be added as require-dev so static code analyzing still works via PHPStan.

Keep in mind there are some errors which existed previously service id is:

\Doctrine\Bundle\PHPCRBundle\OptionalCommand\InitDoctrineDbalCommand::class, 

But class is:

\Doctrine\Bundle\PHPCRBundle\OptionalCommand\Jackalope\InitDoctrineDbalCommand::class

Should we not define services when the class does not exist?

I would say no. Atleast that is how I handle it, wouldn't lint:container fails else?


If you want get best out of Static code analyzing you would require have multiple phpstan configs and baselines depending on installed dependency and handle in the CI have some dependency installed and run PHPStan against it and other runs without specific deps installed. Never did that yet as I think hard maintainance work.

@alexander-schranz
Copy link
Contributor Author

Is prismic even still a thing? The repo https://github.com/jackalope/jackalope-prismic was never updated and not even sure if they still on JCR?

@dbu
Copy link
Member

dbu commented Feb 9, 2026

namespace of InitDoctrineDbalCommand

oh wow 🤦 i guess we should add an alias for the correct one then.

prismic looks quite dead indeed. oh, and yay we can simply drop it - it only works with jackalope 1, and this bundle declares a conflict with jakalope < 2, so there is no risk of breaking anybody's stuff.

shall i handle it or do you want to work on it?

@alexander-schranz
Copy link
Contributor Author

Fine if you handle it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants