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

[DX] Make services private #17276

Merged
merged 29 commits into from
Oct 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
UserBundle changes
# Conflicts:
#	src/Sylius/Bundle/UserBundle/Resources/config/services.xml
  • Loading branch information
mpysiak committed Oct 22, 2024
commit 9948bcdec4be1a2cd4730272d5c6c59e7aa8d8c4
14 changes: 6 additions & 8 deletions src/Sylius/Bundle/UserBundle/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,24 @@
</parameters>

<services>
<defaults public="true" />

<service id="sylius.console.command.demote_user" class="Sylius\Bundle\UserBundle\Console\Command\DemoteUserCommand">
<service id="sylius.console.command.demote_user" class="Sylius\Bundle\UserBundle\Console\Command\DemoteUserCommand" public="true">
<argument type="service" id="doctrine" />
<argument>%sylius.user.users%</argument>
<tag name="console.command" />
</service>

<service id="sylius.console.command.promote_user" class="Sylius\Bundle\UserBundle\Console\Command\PromoteUserCommand">
<service id="sylius.console.command.promote_user" class="Sylius\Bundle\UserBundle\Console\Command\PromoteUserCommand" public="true">
<argument type="service" id="doctrine" />
<argument>%sylius.user.users%</argument>
<tag name="console.command" />
</service>

<service id="sylius.authentication.success_handler" class="Sylius\Bundle\UserBundle\Authentication\AuthenticationSuccessHandler" parent="security.authentication.success_handler" public="false" />
<service id="sylius.authentication.success_handler" class="Sylius\Bundle\UserBundle\Authentication\AuthenticationSuccessHandler" parent="security.authentication.success_handler" />

<service id="sylius.authentication.failure_handler" class="Sylius\Bundle\UserBundle\Authentication\AuthenticationFailureHandler" parent="security.authentication.failure_handler" public="false" />
<service id="sylius.authentication.failure_handler" class="Sylius\Bundle\UserBundle\Authentication\AuthenticationFailureHandler" parent="security.authentication.failure_handler" />

<!-- Controllers -->
<service id="sylius.controller.user_security" class="Sylius\Bundle\UserBundle\Controller\SecurityController">
<service id="sylius.controller.user_security" class="Sylius\Bundle\UserBundle\Controller\SecurityController" public="true">
<argument type="service" id="security.authentication_utils" />
<argument type="service" id="form.factory" />
<argument type="service" id="twig" />
Expand All @@ -65,7 +63,7 @@
<service id="Sylius\Component\User\Security\PasswordUpdaterInterface" alias="sylius.security.password_updater" />

<!-- Listeners -->
<service id="sylius.listener.password_updater" class="Sylius\Bundle\UserBundle\EventListener\PasswordUpdaterListener">
<service id="sylius.listener.password_updater" class="Sylius\Bundle\UserBundle\EventListener\PasswordUpdaterListener" public="true">
<argument type="service" id="sylius.security.password_updater" />
<tag name="kernel.event_listener" event="sylius.user.pre_password_reset" method="genericEventUpdater" />
<tag name="kernel.event_listener" event="sylius.user.pre_password_change" method="genericEventUpdater" />
Expand Down