/** * Sınıfı başlatır ve bazı atamaları gerçekleştirir * @param int $version */ public function __construct(Container $container, $version = 1) { $this->setContainer($container); $this->runParentClass($version); static::$schedule = $schedule = new Cron(); $this->resolveCommands(); $this->schedule($schedule); static::$schedule->setCache(EventReposity::getEvents()); }
/** * get the events * * @return array */ public function getEvents() { return null !== $this->getCache() ? $this->getCache() : EventReposity::getEvents(); }