1 | <?php |
||
9 | trait RunsLumen |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $applicationPath; |
||
15 | |||
16 | /** |
||
17 | * @var Application |
||
18 | */ |
||
19 | private $application; |
||
20 | |||
21 | /** |
||
22 | * Refresh the application instance. |
||
23 | */ |
||
24 | private function refreshApplication() |
||
30 | |||
31 | /** |
||
32 | * Creates the application. |
||
33 | * |
||
34 | * @return Application |
||
35 | * @throws FatalError |
||
36 | */ |
||
37 | private function createApplication() |
||
45 | |||
46 | /** |
||
47 | * Starts the application. |
||
48 | */ |
||
49 | private function startApplication() |
||
55 | |||
56 | /** |
||
57 | * Stops the application. |
||
58 | */ |
||
59 | private function stopApplication() |
||
67 | |||
68 | /** |
||
69 | * @param string $command |
||
70 | * @param array $parameters |
||
71 | * |
||
72 | * @return int |
||
73 | */ |
||
74 | private function runArtisan($command, $parameters = []) |
||
78 | |||
79 | /** |
||
80 | * Sets the application path. |
||
81 | * |
||
82 | * @param string $applicationPath |
||
83 | */ |
||
84 | private function setApplicationPath($applicationPath) |
||
88 | } |
||
89 |