1.0.0 Alpha Release #59
1 changed files with 16 additions and 3 deletions
|
@ -31,6 +31,7 @@
|
||||||
*
|
*
|
||||||
* @param $argv
|
* @param $argv
|
||||||
* @return void
|
* @return void
|
||||||
|
* @throws RuntimeException
|
||||||
*/
|
*/
|
||||||
public static function start($argv): void
|
public static function start($argv): void
|
||||||
{
|
{
|
||||||
|
@ -137,10 +138,22 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return mixed
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function getArgs()
|
public static function getArgs(): array
|
||||||
{
|
{
|
||||||
|
if (self::$args == null)
|
||||||
|
{
|
||||||
|
if(isset($argv))
|
||||||
|
{
|
||||||
|
self::$args = Resolver::parseArguments(implode(' ', $argv));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
self::$args = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return self::$args;
|
return self::$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,7 +170,7 @@
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function shutdown()
|
public static function shutdown(): void
|
||||||
{
|
{
|
||||||
Console::outDebug('clearing cache');
|
Console::outDebug('clearing cache');
|
||||||
RuntimeCache::clearCache();
|
RuntimeCache::clearCache();
|
||||||
|
|
Loading…
Add table
Reference in a new issue