Example #1
0
 /**
  *  Class Constructor
  *  Boot the queue loading config and creating all dependecies
  *
  *  @access public
  *  @return \LaterJob\Queue;
  */
 public function __construct(EventDispatcherInterface $dispatcher, LoggerInterface $logger, array $options, UUID $uuid, LoaderInterface $config_loader, LoaderInterface $model_loader, LoaderInterface $event_loader)
 {
     $this['dispatcher'] = $dispatcher;
     $this['logger'] = $logger;
     $this['uuid'] = $uuid;
     $this['options'] = $options;
     $logger->info('Starting loading LaterJob Queue API with options', $options);
     $config_loader->boot($this);
     $logger->info('Finished loading and parsing Config');
     $model_loader->boot($this);
     $logger->info('Finish loading queue models');
     $event_loader->boot($this);
     $logger->info('Finished registering queue events subscribers');
 }