1<?php namespace ILIAS\GlobalScreen\Scope\Notification\Provider; 2 3use ILIAS\DI\Container; 4use ILIAS\GlobalScreen\Identification\IdentificationProviderInterface; 5use ILIAS\GlobalScreen\Provider\AbstractProvider; 6use ILIAS\GlobalScreen\Scope\Notification\Factory\NotificationFactory; 7 8/** 9 * Interface AbstractNotificationProvider 10 * 11 * @author Fabian Schmid <fs@studer-raimann.ch> 12 */ 13abstract class AbstractNotificationProvider extends AbstractProvider implements NotificationProvider 14{ 15 16 /** 17 * @var Container 18 */ 19 protected $dic; 20 /** 21 * @var IdentificationProviderInterface 22 */ 23 protected $if; 24 /** 25 * @var NotificationFactory 26 */ 27 protected $notification_factory; 28 29 30 /** 31 * @inheritDoc 32 */ 33 public function __construct(Container $dic) 34 { 35 parent::__construct($dic); 36 $this->notification_factory = $this->globalScreen()->notifications()->factory(); 37 $this->if = $this->globalScreen()->identification()->core($this); 38 } 39} 40