vendor/pimcore/customer-management-framework-bundle/src/Event/MaintenanceEventListener.php line 20

Open in your IDE?
  1. <?php
  2. /**
  3.  * Pimcore
  4.  *
  5.  * This source file is available under two different licenses:
  6.  * - GNU General Public License version 3 (GPLv3)
  7.  * - Pimcore Commercial License (PCL)
  8.  * Full copyright and license information is available in
  9.  * LICENSE.md which is distributed with this source code.
  10.  *
  11.  *  @copyright  Copyright (c) Pimcore GmbH (http://www.pimcore.org)
  12.  *  @license    http://www.pimcore.org/license     GPLv3 and PCL
  13.  */
  14. namespace CustomerManagementFrameworkBundle\Event;
  15. class MaintenanceEventListener
  16. {
  17.     public function onMaintenance(\Pimcore\Event\System\MaintenanceEvent $e)
  18.     {
  19.         \Pimcore::getContainer()->get('cmf.customer_exporter_manager')->cleanupExportTmpData();
  20.         \Pimcore::getContainer()->get('cmf.customer_provider.object_naming_scheme')->cleanupEmptyFolders();
  21.     }
  22. }