Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/mageworx/module-seoxtemplates/Cron/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/mageworx/module-seoxtemplates/Cron/GenerateTemplate.php
<?php
/**
 * Copyright © 2016 MageWorx. All rights reserved.
 * See LICENSE.txt for license details.
 */

namespace MageWorx\SeoXTemplates\Cron;

use Magento\Framework\Event\ManagerInterface as EventManagerInterface;

abstract class GenerateTemplate
{
    /** @var EventManagerInterface */
    protected $eventManager;

    /**
     * @param EventManagerInterface $eventManager
     */
    public function __construct(
        EventManagerInterface $eventManager
    ) {
        $this->eventManager = $eventManager;
    }

    /**
     * Generate event by template type
     *
     * @param int $typeId
     */
    protected function generateEntityByTypeId($typeId)
    {
        $this->eventManager->dispatch(
            'mageworx_seoxtemplates_product_template_apply',
            [
                'templateTypeId' => $typeId
            ]
        );
    }

    /**
     * Generate event by template type
     *
     * @param int $typeId
     */
    protected function generateEntityByTypeIdForCategory($typeId)
    {
        $this->eventManager->dispatch(
            'mageworx_seoxtemplates_category_template_apply',
            [
                'templateTypeId' => $typeId
            ]
        );
    }

    /**
     * Generate event by template type
     *
     * @param int $typeId
     */
    protected function generateEntityByTypeIdForLandingPage($typeId)
    {
        $this->eventManager->dispatch(
            'mageworx_seoxtemplates_landingpage_template_apply',
            [
                'templateTypeId' => $typeId
            ]
        );
    }
}

Spamworldpro Mini