Перенос в микроприложение

This commit is contained in:
RedHood
2020-09-16 03:14:44 +10:00
commit dc5b301adf
9 changed files with 1586 additions and 0 deletions

18
config/console.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
return [
'id' => 'Dumper',
'controllerNamespace' => 'app\controllers',
'basePath' => dirname(__DIR__),
'params' => [
'basePath' => dirname(__DIR__) . '/dumps',
'pagesPath' => '/pages',
'docsPath' => '/data',
'imgPath' => '/img',
'cssPath' => '/css',
'jsPath' => '/js',
'externalLinksPath' => '/sites',
'timezone' => 'Asia/Vladivostok',
'useragent' => 'Dumper',
'regBlackList' => '(instagram|whatsapp|appdv)'
]
];

6
config/schedule.php Normal file
View File

@@ -0,0 +1,6 @@
<?php
/**
* @var \omnilight\scheduling\Schedule $schedule
*/
$schedule->command('dump http://expertise.27pro.ru// 5 50')->dailyAt('03:00');