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
Show file tree
Hide file tree
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
Prev Previous commit
Changes after CR
  • Loading branch information
mpysiak committed Oct 22, 2024
commit a403735a73f0301227fab54a06ad1e5691ab3eb6
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@
<argument type="service" id="twig" />
</service>

<service id="sylius_admin.controller.remove_avatar" class="Sylius\Bundle\AdminBundle\Action\RemoveAvatarAction" public="true">
<service id="sylius_admin.controller.remove_avatar" class="Sylius\Bundle\AdminBundle\Action\RemoveAvatarAction">
<argument type='service' id="sylius.repository.avatar_image" />
<argument type="service" id="router" />
<argument type="service" id="security.csrf.token_manager" />
</service>

<service id="sylius_admin.controller.resend_order_confirmation_email" class="Sylius\Bundle\AdminBundle\Action\ResendOrderConfirmationEmailAction" public="true">
<service id="sylius_admin.controller.resend_order_confirmation_email" class="Sylius\Bundle\AdminBundle\Action\ResendOrderConfirmationEmailAction">
<argument type='service' id="sylius.repository.order" />
<argument type="service" id="sylius.command_dispatcher.resend_order_confirmation_email" />
<argument type="service" id="security.csrf.token_manager" />
<argument type="service" id="request_stack" />
<argument type="service" id="router" />
</service>

<service id="sylius_admin.controller.resend_shipment_confirmation_email" class="Sylius\Bundle\AdminBundle\Action\ResendShipmentConfirmationEmailAction" public="true">
<service id="sylius_admin.controller.resend_shipment_confirmation_email" class="Sylius\Bundle\AdminBundle\Action\ResendShipmentConfirmationEmailAction">
<argument type='service' id="sylius.repository.shipment" />
<argument type="service" id="sylius.command_dispatcher.resend_shipment_confirmation_email" />
<argument type="service" id="security.csrf.token_manager" />
Expand All @@ -74,34 +74,35 @@
<argument type="service" id="twig" />
</service>

<service id="sylius_admin.controller.dashboard" class="Sylius\Bundle\AdminBundle\Controller\DashboardController" public="true">
<service id="sylius_admin.controller.dashboard" class="Sylius\Bundle\AdminBundle\Controller\DashboardController">
<argument type="service" id="sylius.repository.channel" />
<argument type="service" id="twig" />
<argument type="service" id="router" />
</service>

<service id="sylius_admin.controller.customer_statistics" class="Sylius\Bundle\AdminBundle\Controller\CustomerStatisticsController" public="true">
<service id="sylius_admin.controller.customer_statistics" class="Sylius\Bundle\AdminBundle\Controller\CustomerStatisticsController">
<argument type='service' id="sylius.provider.statistics.customer" />
<argument type='service' id="sylius.repository.customer" />
<argument type='service' id="twig" />
</service>

<service id="sylius_admin.controller.notification" class="Sylius\Bundle\AdminBundle\Controller\NotificationController" public="true">
<service id="sylius_admin.controller.notification" class="Sylius\Bundle\AdminBundle\Controller\NotificationController">
<argument type="service" id="sylius.http_client" />
<argument type="service" id="Psr\Http\Message\RequestFactoryInterface" />
<argument type="string">%sylius.admin.notification.uri%</argument>
<argument type="string">%kernel.environment%</argument>
<argument type="service" id="Psr\Http\Message\StreamFactoryInterface" />
</service>

<service id="sylius_admin.controller.remove_catalog_promotion" class="Sylius\Bundle\AdminBundle\Controller\RemoveCatalogPromotionAction" public="true">
<service id="sylius_admin.controller.remove_catalog_promotion" class="Sylius\Bundle\AdminBundle\Controller\RemoveCatalogPromotionAction">
<argument type="service" id="sylius.processor.catalog_promotion.removal" />
</service>

<service
id="sylius_admin.resource_controller.redirect_handler"
class="Sylius\Bundle\AdminBundle\Controller\RedirectHandler"
decorates="sylius.resource_controller.redirect_handler"
public="false"
>
<argument type="service" id=".inner" />
<argument type="service" id="sylius.grid.filter_storage" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
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="sylius.listener.user_mailer" class="Sylius\Bundle\CoreBundle\EventListener\MailerListener" public="false">
<argument type="service" id="sylius.email_sender" />
<argument type="service" id="sylius.context.channel" />
<argument type="service" id="sylius.context.locale" />
<tag name="kernel.event_listener" event="sylius.user.password_reset.request.token" method="sendResetPasswordTokenEmail" />
<tag name="kernel.event_listener" event="sylius.user.email_verification.token" method="sendVerificationTokenEmail" />
<tag name="kernel.event_listener" event="sylius.user.post_email_verification" method="sendVerificationSuccessEmail" />
<tag name="kernel.event_listener" event="sylius.customer.post_register" method="sendUserRegistrationEmail" />
<services>
<service id="sylius.listener.user_mailer" class="Sylius\Bundle\CoreBundle\EventListener\MailerListener">
<argument type="service" id="sylius.email_sender" />
<argument type="service" id="sylius.context.channel" />
<argument type="service" id="sylius.context.locale" />
<tag name="kernel.event_listener" event="sylius.user.password_reset.request.token" method="sendResetPasswordTokenEmail" />
<tag name="kernel.event_listener" event="sylius.user.email_verification.token" method="sendVerificationTokenEmail" />
<tag name="kernel.event_listener" event="sylius.user.post_email_verification" method="sendVerificationSuccessEmail" />
<tag name="kernel.event_listener" event="sylius.customer.post_register" method="sendUserRegistrationEmail" />
</service>

<service id="sylius.mailer.contact_email_manager" class="Sylius\Bundle\CoreBundle\Mailer\ContactEmailManager">
Expand Down
Loading