Files
kiri-core/System/Runtime.php
T
2021-04-19 12:34:52 +08:00

42 lines
672 B
PHP

<?php
namespace Snowflake;
use Console\Command;
use Exception;
use Snowflake\Abstracts\Input;
/**
* Class Runtime
* @package Snowflake
*/
class Runtime extends Command
{
public string $command = 'runtime:builder';
public string $description = 'create app file cache';
/**
* @param Input $dtl
* @throws Exception
*/
public function onHandler(Input $dtl)
{
// TODO: Implement onHandler() method.
$annotation = Snowflake::app()->getAnnotation();
$runtime = storage('runtime.php');
var_dump($annotation->getLoader());
Snowflake::writeFile($runtime, serialize($annotation->getLoader()));
}
}