![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/vendor/litesaml/lightsaml/src/Binding/ |
<?php namespace LightSaml\Binding; use LightSaml\Context\Profile\MessageContext; use LightSaml\Event\MessageReceived; use LightSaml\Event\MessageSent; use Psr\EventDispatcher\EventDispatcherInterface; use Symfony\Component\HttpFoundation\Request; abstract class AbstractBinding { /** @var EventDispatcherInterface|null */ protected $eventDispatcher; /** * @return AbstractBinding */ public function setEventDispatcher(EventDispatcherInterface $eventDispatcher = null) { $this->eventDispatcher = $eventDispatcher; return $this; } /** * @return EventDispatcherInterface|null */ public function getEventDispatcher() { return $this->eventDispatcher; } /** * @param string $messageString */ protected function dispatchReceive($messageString) { if ($this->eventDispatcher) { $this->eventDispatcher->dispatch(new MessageReceived($messageString)); } } /** * @param string $messageString */ protected function dispatchSend($messageString) { if ($this->eventDispatcher) { $this->eventDispatcher->dispatch(new MessageSent($messageString)); } } /** * @param string|null $destination * * @return \Symfony\Component\HttpFoundation\Response */ abstract public function send(MessageContext $context, $destination = null); abstract public function receive(Request $request, MessageContext $context); }