mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
23 lines
756 B
Plaintext
23 lines
756 B
Plaintext
* Your ability is almost ready:
|
|
1. Edit <comment>src/AbilityEventSubscriber</comment> and <info>implement</info> your logic:
|
|
|
|
public static function getSubscribedEvents(): array
|
|
{
|
|
return [
|
|
// can be found in AmbientLink\SDK\Event\
|
|
EnterRoomEvent::NAME => 'onEnterRoom',
|
|
];
|
|
}
|
|
|
|
public function onEnterRoom(EnterRoomEvent $event): void
|
|
{
|
|
$roomName = $event->roomName();
|
|
|
|
$this->logger->debug(sprintf('Some person enters room "%s".', $roomName));
|
|
|
|
// @todo implement logic here
|
|
}
|
|
|
|
* You can found Events in AmbientLink\SDK\Event\
|
|
* Using Ability Command? Try <info>php bin/console ability:debug --dummy</info>
|