[POC] how to not be dependent on discovery #54
Closed
Conversation
|
oh, that makes sense to me! |
| */ | ||
| private function verifyDiscoveryInstalled(ContainerBuilder $container) | ||
| { | ||
| $enabledBundles = $container->getParameter('kernel.bundles'); |
dbu
Feb 29, 2016
Collaborator
i guess we need to fake some things for the unit tests here. we can then also test the error situation.
i guess we need to fake some things for the unit tests here. we can then also test the error situation.
sagikazarmark
Feb 29, 2016
Member
I don't think we need to check against the bundle, we can check against the service as well. I think that is easier to mock.
I don't think we need to check against the bundle, we can check against the service as well. I think that is easier to mock.
|
For me this is the same as the interface packages with one more downside: this way you have to manually install the Puli composer plugin AND the symfony bundle as well. While the composer plugin is not necessary if you want to use puli, you can manually configure any kind of client, the symfony bundle is ALWAYS necessary in order to use Puli. |
|
Hm, it seems I was wrong. The symfony-bundle actually requires the composer plugin. In this case, it's enough to suggest and install the symfony bundle. |
sagikazarmark
added a commit
that referenced
this pull request
Mar 1, 2016
POC how to not be dependent on discovery Fix unit tests Fix factory method Remove duplicated service Move discovery to compiler pass Applied fixes from StyleCI Fix puli executable Use class constant Fix puli command order Fix lowest dependency issue Fix HHVM tests Improve tests
sagikazarmark
added a commit
that referenced
this pull request
Mar 1, 2016
POC how to not be dependent on discovery Fix unit tests Fix factory method Remove duplicated service Move discovery to compiler pass Applied fixes from StyleCI Fix puli executable Use class constant Fix puli command order Fix lowest dependency issue Fix HHVM tests Improve tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
This is just a proof of concept how you could do to not be dependent on discovery. This will make the dependency to puli or puli bundle optional