Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ class MultipleEventSubscriptions
public function callMe()
{
}

#[\Symfony\Component\EventDispatcher\Attribute\AsEventListener(event: 'single_event')]
public function singles()
{
}

#[\Symfony\Component\EventDispatcher\Attribute\AsEventListener(event: 'multi_event')]
public function meToo()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ class MultipleMixedMethods
public function onKernelException(ExceptionEvent $event)
{
}

#[\Symfony\Component\EventDispatcher\Attribute\AsEventListener(event: 'single_event')]
public function singles()
{
}

public function unknownMethod()
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class SmsNotificationHandler
{
// ...
}

#[\Symfony\Component\Messenger\Attribute\AsMessageHandler(priority: 12, bus: 'messenger.bus.default')]
public function handleOtherSmsNotification(OtherSmsNotification $message)
{
Expand Down
Loading