ltsecurityinc安防产品在线商城代码
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Cron Schedule List for Magento 2 (System)
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
|
||||
<acl>
|
||||
<resources>
|
||||
<resource id="Magento_Backend::admin">
|
||||
<resource id="Magento_Backend::system">
|
||||
<resource id="Amasty_CronScheduleList::amasty_schedule" title="Amasty Cron Scheduler">
|
||||
<resource id="Amasty_CronScheduleList::schedule_list" title="Cron Tasks List" />
|
||||
</resource>
|
||||
</resource>
|
||||
</resource>
|
||||
</resources>
|
||||
</acl>
|
||||
</config>
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Cron Schedule List for Magento 2 (System)
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
|
||||
<menu>
|
||||
<add id="Amasty_CronScheduleList::amasty_schedule"
|
||||
title="Amasty Cron Scheduler"
|
||||
module="Amasty_CronScheduleList"
|
||||
sortOrder="110"
|
||||
parent="Magento_Backend::system"
|
||||
resource="Amasty_CronScheduleList::amasty_schedule"/>
|
||||
<add id="Amasty_CronScheduleList::schedule_list"
|
||||
title="Cron Tasks List"
|
||||
module="Amasty_CronScheduleList"
|
||||
sortOrder="10"
|
||||
parent="Amasty_CronScheduleList::amasty_schedule"
|
||||
action="amasty_cronschedulelist/schedule/index"
|
||||
resource="Amasty_CronScheduleList::schedule_list"/>
|
||||
</menu>
|
||||
</config>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Cron Schedule List for Magento 2 (System)
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="admin">
|
||||
<route id="amasty_cronschedulelist" frontName="amasty_cronschedulelist">
|
||||
<module name="Amasty_CronScheduleList"/>
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Cron Schedule List for Magento 2 (System)
|
||||
*/-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
|
||||
<group id="default">
|
||||
<job instance="Amasty\CronScheduleList\Cron\Activity" method="execute" name="amasty_cron_activity">
|
||||
<schedule>* * * * *</schedule>
|
||||
</job>
|
||||
</group>
|
||||
</config>
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Cron Schedule List for Magento 2 (System)
|
||||
*/-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<type name="Magento\Cron\Model\ResourceModel\Schedule\Collection">
|
||||
<plugin name="Amasty_CronScheduleList::idfieldname" type="Amasty\CronScheduleList\Plugin\ScheduleCollectionPlugin" />
|
||||
</type>
|
||||
<type name="Amasty\CronScheduleList\Controller\Adminhtml\Schedule\RunCron">
|
||||
<arguments>
|
||||
<argument name="shell" xsi:type="object">shellBackground</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
</config>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Cron Schedule List for Magento 2 (System)
|
||||
*/-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="Amasty_CronScheduleList" setup_version="1.0.0">
|
||||
<sequence>
|
||||
<module name="Amasty_Base"/>
|
||||
</sequence>
|
||||
</module>
|
||||
</config>
|
||||
Reference in New Issue
Block a user