Skip to content
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

Prepend JMSDiExtraBundle configuration making FosRestBundle/NelmioApiDocBundle optional #829

Closed
wants to merge 1 commit into from
Closed

Prepend JMSDiExtraBundle configuration making FosRestBundle/NelmioApiDocBundle optional #829

wants to merge 1 commit into from

Conversation

gremo
Copy link
Contributor

@gremo gremo commented Jan 25, 2017

I am targetting this branch, because this PR make possible to use JMSDiExtra bundle without FosRestBundle and NelmioApiDocBundle.

Closes #686

Changelog

### Fixed
- make it possible to use JMSDiExtra bundle without FosRestBundle and NelmioApiDocBundle

// Blacklist all API controllers when using JMSDiExtraBundle without NelmioApiDocBundle or FOSRestBundle. API
// controllers use annotations and would be warmed, throwing an exception.
if (isset($bundles['JMSDiExtraBundle']) &&
(!isset($bundles['NelmioApiDocBundle']) || !isset($bundles['FOSRestBundle']))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is equivalent to !isset($bundles['NelmioApiDocBundle'], $bundles['FOSRestBundle'])

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll check and report back, never used more than one argument.

Copy link
Member

Choose a reason for hiding this comment

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

Please update this PR @gremo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@core23 done!

@gremo gremo changed the title Prepend JMSDiExtraBundle configuration making FosRestBundle and Nelmi… Prepend JMSDiExtraBundle configuration making FosRestBundle/NelmioApiDocBundle optional Jun 14, 2017
@greg0ire greg0ire added the patch label Jun 14, 2017
Copy link
Member

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

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

Can you please add a test, using this bundle?

https://github.com/matthiasnoback/SymfonyDependencyInjectionTest

Thank you!

@OskarStark
Copy link
Member

@gremo could you please finalize this PR?

@gremo
Copy link
Contributor Author

gremo commented Sep 14, 2017

@OskarStark I rebased this PR as a starting point. How should I finalize this? I still think that the problem is described schmittjoh/JMSDiExtraBundle#269 but no one cares, I you can help with that PR it would be great.

@gremo
Copy link
Contributor Author

gremo commented Sep 21, 2017

So @OskarStark this is a workaround because no one seems to care the PR that I opened to JMSDiExtraBundle. How we should proceed?

@gremo
Copy link
Contributor Author

gremo commented Sep 27, 2017

So @greg0ire I think we can close this thanks to schmittjoh/JMSDiExtraBundle#270?

@gremo gremo closed this Sep 27, 2017
@gremo gremo deleted the make-fosrest-nelmio-optional branch September 28, 2017 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants