Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Observer.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\MysqlMq\Model;
7 
11 class Observer
12 {
16  protected $queueManagement;
17 
22  public function __construct(
24  ) {
25  $this->queueManagement = $queueManagement;
26  }
27 
32  public function cleanupMessages()
33  {
34  $this->queueManagement->markMessagesForDelete();
35  }
36 }
__construct(\Magento\MysqlMq\Model\QueueManagement $queueManagement)
Definition: Observer.php:22