General function

Env

Get the value of the environment variable

 function env(string $key = null, $default = null): mixed 

Alias

Get the value of the path alias

 function alias(string $key): string 

Bean

Get the bean object from the container, equivalent to \Swoft::getBean()

 function bean(string $key): object 

Config

Get the value of the app configuration

 function config(string $key, $default = null): mixed 

Sgo

Open a new coroutine

 function sgo(callable $callable, bool $wait = true): void 

Server

 function server(): \Swoft\Server\Server 

Context

Get context object

 function context(): ContextInterface 

Container

Get container object

 function container(): Container 

Vdump

The print data is the same as var_dump, except that it will be called in the front to facilitate debugging.

 function vdump(...$vars) 
/docs/2.x/en/common/generic.html
progress-bar