Ejemplo n.º 1
0
 /**
  * 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());
 }
Ejemplo n.º 2
0
 /**
  * get the events
  *
  * @return array
  */
 public function getEvents()
 {
     return null !== $this->getCache() ? $this->getCache() : EventReposity::getEvents();
 }