-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathWarm.php
More file actions
37 lines (30 loc) · 673 Bytes
/
Warm.php
File metadata and controls
37 lines (30 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* @author Aaron Francis <aaron@hammerstone.dev>
*/
namespace Hammerstone\Sidecar\Commands;
use Hammerstone\Sidecar\Sidecar;
class Warm extends EnvironmentAwareCommand
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'sidecar:warm';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Send warming requests to Sidecar functions';
/**
* @throws Exception
*/
public function handle()
{
$this->overrideEnvironment();
Sidecar::addCommandLogger($this);
Sidecar::warm();
}
}