Skip to content

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

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

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 commented Feb 29, 2016

oh, that makes sense to me!

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

Choose a reason for hiding this comment

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

i guess we need to fake some things for the unit tests here. we can then also test the error situation.

Copy link
Member

Choose a reason for hiding this comment

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

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

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

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants