Skip to content

Conversation

@alexndlm
Copy link
Contributor

@alexndlm alexndlm commented Oct 8, 2025

Q A
Branch? 4.2
Tickets
License MIT
Doc PR

@alexndlm alexndlm changed the base branch from main to 4.2 October 8, 2025 12:25
{
$routeCollection->addCollection($this->fileLoader->load('docs.xml'));
if ($this->docsEnabled) {
$routeCollection->addCollection($this->fileLoader->load('docs.xml'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GromNaN should we also move our routes to php?

Copy link
Contributor

@GromNaN GromNaN Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it need to be done also: symfony/symfony#60568
We should add a 2nd transformation class in https://github.com/GromNaN/symfony-config-xml-to-php

@soyuka
Copy link
Member

soyuka commented Oct 9, 2025

We did not do this on purpose a when using JSON-LD you sematically need to have the docs.jsonld route. You should've a way to disable the openapi docs though no?

@alexndlm
Copy link
Contributor Author

alexndlm commented Oct 9, 2025

You should've a way to disable the openapi docs though no?

I'm sorry, but I don't think it's a good idea.

I also refactored a little, please check.

@alexndlm alexndlm requested a review from soyuka October 9, 2025 08:46
@soyuka
Copy link
Member

soyuka commented Oct 31, 2025

can you rebase, don't you have a way to disable the open api docs? can you explain a little bit more what you want to disable ?

@alexndlm alexndlm force-pushed the feature/do-not-load-docs-routes-if-docs-disabled branch from 7ff2c24 to 3777747 Compare October 31, 2025 09:23
@alexndlm
Copy link
Contributor Author

Rebased.

The main goal is not to have a docs route at all.

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.

3 participants