★ wanayoo — archive 1999 https://github.com/php-http/HttplugBundle/pull/54Nouvelle recherche | Portail wanayoo
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

[POC] how to not be dependent on discovery #54

Closed
wants to merge 1 commit into from

Conversation

@Nyholm
Copy link
Member

@Nyholm Nyholm commented Feb 29, 2016

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

@Nyholm Nyholm mentioned this pull request Feb 29, 2016
@dbu
Copy link
Collaborator

@dbu dbu commented Feb 29, 2016

oh, that makes sense to me!

*/
private function verifyDiscoveryInstalled(ContainerBuilder $container)
{
$enabledBundles = $container->getParameter('kernel.bundles');

This comment has been minimized.

@dbu

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.

This comment has been minimized.

@sagikazarmark

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.

@sagikazarmark
Copy link
Member

@sagikazarmark sagikazarmark commented Feb 29, 2016

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.

@sagikazarmark
Copy link
Member

@sagikazarmark sagikazarmark commented Feb 29, 2016

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
@Nyholm Nyholm closed this in 4463f6c Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.