Skip to content

DI: Improve swagger versions parameter (fix #3115) #3167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 23, 2019

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Oct 11, 2019

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #3115
License MIT
Doc PR api-platform/docs#1234

@soyuka soyuka force-pushed the fix-swagger-versions branch 2 times, most recently from 5d19d84 to b4adb0e Compare October 14, 2019 12:17
@soyuka soyuka force-pushed the fix-swagger-versions branch 3 times, most recently from aaa938c to c91b056 Compare October 18, 2019 12:52
@soyuka soyuka force-pushed the fix-swagger-versions branch 2 times, most recently from 6fc5138 to 9a5cf95 Compare October 22, 2019 12:59
@@ -344,6 +345,10 @@ private function registerJsonLdHydraConfiguration(ContainerBuilder $container, a
return;
}

if (!$container->has('api_platform.json_schema.schema_factory')) {
$container->removeDefinition('api_platform.hydra.json_schema.schema_factory');
Copy link
Contributor

@teohhanhui teohhanhui Oct 22, 2019

Choose a reason for hiding this comment

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

You cannot remove a definition when it doesn't exist yet (it's defined in hydra.xml loaded few lines below)...

$loader->load('hydra.xml');

@soyuka soyuka force-pushed the fix-swagger-versions branch from 9a5cf95 to 3cab522 Compare October 23, 2019 07:32
@soyuka soyuka merged commit 2ef093b into api-platform:2.5 Oct 23, 2019
@soyuka soyuka deleted the fix-swagger-versions branch October 23, 2019 07:47
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