Пример #1
0
 /**
  * Get a default queue value, if any is available
  *
  * @return Queue|null A default queue value or Null if no default value is available
  */
 public function getDefaultQueue()
 {
     // By default, the Queue Facade does not return the
     // any actual database connection, but rather an
     // instance of \Illuminate\Queue\QueueManager.
     // Therefore, we make sure only to obtain its
     // "connection", to make sure that its only the connection
     // instance that we obtain.
     $manager = QueueFacade::getFacadeRoot();
     if (!is_null($manager)) {
         return $manager->connection();
     }
     return $manager;
 }
Пример #2
0
 /**
  * Get a default queue manager value, if any is available
  *
  * @return QueueManager|null A default queue manager value or Null if no default value is available
  */
 public function getDefaultQueueManager()
 {
     return Queue::getFacadeRoot();
 }
Пример #3
0
 /**
  * Get a default queue factory value, if any is available
  *
  * @return Factory|null A default queue factory value or Null if no default value is available
  */
 public function getDefaultQueueFactory()
 {
     return Queue::getFacadeRoot();
 }