vendor/blackbit/data-director/EventListener/ImportStatusListener.php line 30

Open in your IDE?
  1. <?php
  2. /*
  3.  * The software is distributed under the enclosed dual licence agreement. Accordingly, it is the responsibility of the licensee to use the software under the terms of the GPLv3 or, if purchased, under the terms of the commercial licence. Simultaneous use of the software under both licence forms for the same licensed object or a subsequent ‘change’ of licence forms by the same licensee is not permitted.
  4.  *
  5.  * In accordance with the provisions of the respective licences, it is only possible to
  6.  * a.) use Blackbit software under GPLv3 with the Pimcore Community Edition under GPLv3 or
  7.  * b.) combine Blackbit software under a commercial licence and Pimcore under a commercial licence.
  8.  *
  9.  * You can use the software under the terms of the GNU General Public Licence, Version 3 (GPLv3). This brings with it many rights of use and freedoms:
  10.  * Open source - You can view the unencrypted programme code of our software.
  11.  * Customisation - You can adapt the software to your needs and develop it further as you wish.
  12.  * Distribution - You can copy, distribute and even sell the software or further developments of the software as long as you comply with the GNU GPL v3 licence. Because you become the owner of the code when you purchase the bundle, there is no warranty and no free service.
  13.  *
  14.  * Alternatively, you can use the software under the Blackbit Commercial Licence. This means that the software remains the property of Blackbit and may be used in one instance per licence. Blackbit grants the user a limited right of use and eliminates defects and errors and provides updates free of charge during the contract period. Optionally, separate service and support contracts can be concluded for Blackbit software.
  15.  *
  16.  * For further information, please refer to the respective licence files or contact sales@blackbit.de
  17.  */
  18. namespace Blackbit\DataDirectorBundle\EventListener;
  19. use Blackbit\DataDirectorBundle\Maintenance\CleanupImportTrait;
  20. use Pimcore\Event\System\MaintenanceEvent;
  21. use Pimcore\Model\Schedule\Maintenance\Job;
  22. // Fallback for Pimcore 5 (does not support defining maintenance task via service tag)
  23. class ImportStatusListener
  24. {
  25.     use CleanupImportTrait;
  26.     public function maintenance(MaintenanceEvent $event)
  27.     {
  28.         $event->getManager()->registerJob(Job::fromMethodCall('importCleanupLegacy'$this'execute'));
  29.     }
  30. }