Exemple #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());
 }
 /**
  * create a new instance and register schedule instance to $schedule variable
  *
  * @param Schedule $schedule
  */
 public function __construct(Schedule $schedule = null)
 {
     $this->schedule = $schedule;
     $this->schedule->install(Task::console('schedule:run'));
     parent::__construct();
 }
 /**
  * Komut yakalandığı zaman tetiklenecek fonksiyonlardan biridir
  * @return mixed
  */
 public function fire()
 {
     // clean the all commands
     $this->schedule->clean();
     $this->info('all commands  cleaned');
 }