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

Add service publicy to ensure compat with new Symfony 3.4 DI #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nmacherey
Copy link

No description provided.

@nmacherey
Copy link
Author

Hum I only changes services definitions from the main stream... I suppose that style errors are coming from different commits

@acrobat
Copy link
Member

acrobat commented Jan 1, 2018

Hi @nmacherey, thanks for the PR! Can you please revert the style changes so we keep only the necessary changes.Thanks!

@nmacherey
Copy link
Author

nmacherey commented Jan 2, 2018

Done ! I also made public the queue factory... #71 as We really need to create queue and call the consumer service manually in out behat tests. Using the CommandRunner is also an option but I would rather use the service layer.

@@ -4,7 +4,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
<service id="bernard.data_collector.message" class="Bernard\BernardBundle\Collector\ProducerCollector">
<service id="bernard.data_collector.message" class="Bernard\BernardBundle\Collector\ProducerCollector" public="true">
Copy link
Member

Choose a reason for hiding this comment

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

Why does this service need to be public?

Copy link
Author

Choose a reason for hiding this comment

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

In fact I don't know... I just took all services that where public using 3.3 and add the public tag...

@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="bernard.command.consume" class="Bernard\Command\ConsumeCommand">
<service id="bernard.command.consume" class="Bernard\Command\ConsumeCommand" public="true">
Copy link
Member

Choose a reason for hiding this comment

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

Why do the commands need to be public?

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.

2 participants