Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 1 addition & 7 deletions app/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,7 @@ services:
class: AppBundle\Email\Mailer\Adapter\SymfonyMailerAdapter
autowire: true

AppBundle\Email\Mailer\Adapter\MailerAdapter: '@mailer.adapter.php'

mailer.client.symfony:
class: AppBundle\Email\Mailer\Mailer
autowire: true
arguments:
$adapter: '@mailer.adapter.symfony'
AppBundle\Email\Mailer\Adapter\MailerAdapter: '@mailer.adapter.symfony'

AppBundle\Mailchimp\EventEventSubscriber:
arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
use AppBundle\AuditLog\Audit;
use AppBundle\Email\Mailer\Mailer;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\HttpFoundation\Response;

class SendMembershipFeeInvoiceAction extends AbstractController
{
public function __construct(
#[Autowire('@mailer.client.symfony')]
private readonly Mailer $mailer,
private readonly UserRepository $userRepository,
private readonly Cotisations $cotisations,
Expand Down
Loading