Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 42d0c148
authored
May 11, 2021
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#19458 Обновление справочника городов.
1 parent
e9bf4b7d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
app/Console/Commands/CallCheckDictionariesChange.php
app/Console/Kernel.php
app/Console/Commands/CallCheckDictionariesChange.php
0 → 100644
View file @
42d0c14
<?php
namespace
App\Console\Commands
;
use
App\Service\API\API
;
use
App\Service\Direct\CheckDictionaries
;
use
App\Service\Direct\GetCampaigns
;
use
App\Service\Requests\Direct\CheckDictionariesChange
;
use
Illuminate\Console\Command
;
use
Illuminate\Support\Facades\Bus
;
class
CallCheckDictionariesChange
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'call-check-dictionaries-change'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'Запрос остатка баллов'
;
/**
* Create a new command instance.
*
* @return void
*/
public
function
__construct
()
{
parent
::
__construct
();
}
/**
* Execute the console command.
*
* @return void
*/
public
function
handle
()
{
CheckDictionariesChange
::
getInstance
(
API
::
YANDEX
)
->
call
();
}
}
app/Console/Kernel.php
View file @
42d0c14
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
App\Console
;
namespace
App\Console
;
use
App\Console\Commands\CallCheckDictionariesChange
;
use
Illuminate\Console\Scheduling\Schedule
;
use
Illuminate\Console\Scheduling\Schedule
;
use
Illuminate\Foundation\Console\Kernel
as
ConsoleKernel
;
use
Illuminate\Foundation\Console\Kernel
as
ConsoleKernel
;
...
@@ -25,6 +26,7 @@ class Kernel extends ConsoleKernel
...
@@ -25,6 +26,7 @@ class Kernel extends ConsoleKernel
protected
function
schedule
(
Schedule
$schedule
)
protected
function
schedule
(
Schedule
$schedule
)
{
{
$schedule
->
command
(
'refreshLimits'
)
->
hourly
();
$schedule
->
command
(
'refreshLimits'
)
->
hourly
();
$schedule
->
command
(
CallCheckDictionariesChange
::
class
)
->
saturdays
()
->
at
(
'05:00'
);
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment