* @author Christoph Aßmann * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @link https://www.temando.com/ */ class AdminLogoutObserver implements ObserverInterface { /** * @var AuthenticationInterface */ private $auth; /** * AdminLogoutObserver constructor. * @param AuthenticationInterface $auth */ public function __construct(AuthenticationInterface $auth) { $this->auth = $auth; } /** * @param Observer $observer * @return void */ public function execute(Observer $observer) { $this->auth->disconnect(); } }