Skip to content

Commit b151992

Browse files
authored
Update App.php
1 parent 43bccfe commit b151992

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/App.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
*/
3838
class App
3939
{
40+
/** @var self */
41+
public static $i;
42+
4043
private const COMMAND_CONFIG = [
4144
'desc' => '',
4245
'usage' => '',
@@ -88,6 +91,9 @@ class App
8891
*/
8992
public function __construct(array $argv = null)
9093
{
94+
// save self
95+
self::$i = $this;
96+
9197
// get current dir
9298
$this->pwd = getcwd();
9399

0 commit comments

Comments
 (0)