/** * @api */ public function __construct(Contract\Cache $cache, Contract\Session $session) { parent::__construct(); $this->session = $session; $this->cache = $cache; }
/** * @return PHPCrystal\PHPCrystal\Service\Event\Type\InitService */ public function dispatchInitServiceEvent($serviceInstance) { $initServiceEvent = Event\Type\System\InitService::create($serviceInstance); return parent::dispatch($initServiceEvent); }