- class
Environment(php\lang\Environment) - package
std - source
php/lang/Environment.php
Description
Class Environment
Environment ::current()- Get environment of current execution
->__construct()->registerSourceMap()->unregisterSourceMap()->execute()- Executes $runnable in the environment->importClass()- Imports the $className to the environment->exportClass()- Exports the $className from th environment->importFunction()- Imports the $functionName to the environment->exportFunction()- Exports the $functionName from the environment->importAutoLoaders()- Imports the all spl auto loaders to the environment.->defineConstant()->onMessage()- Handles messages that sent to the environment->onOutput()->sendMessage()- Send message to the environment->findModule()->getPackages()->hasPackage()->getPackage()->setPackage()->registerExtension()->addSuperGlobal()->hasSuperGlobal()->getSuperGlobals()->getGlobals()- $GLOBALS of environment.->getGlobal()->hasGlobal()->setGlobal()
Environment::current(): EnvironmentGet environment of current execution
__construct(php\lang\Environment $parent, int $flags): voidregisterSourceMap(php\lang\SourceMap $sourceMap): voidunregisterSourceMap(php\lang\SourceMap $sourceMap): voidexecute(callable $runnable): mixedExecutes $runnable in the environment
importClass(string $className): voidImports the $className to the environment
exportClass(string $className): voidExports the $className from th environment
importFunction(string $functionName): voidImports the $functionName to the environment
exportFunction(string $functionName): voidExports the $functionName from the environment
importAutoLoaders(): voidImports the all spl auto loaders to the environment.
defineConstant(string $name, mixed $value, bool $caseSensitive): voidonMessage(callable $callback): voidHandles messages that sent to the environment
onOutput(callable|null $callback): voidsendMessage(mixed $message): mixedSend message to the environment
findModule(string $path): Module|nullgetPackages(): Package[]hasPackage(string $name): boolgetPackage(string $name): PackagesetPackage(string $name, php\lang\Package $package): voidregisterExtension(string $extensionId): voidaddSuperGlobal(string $name, mixed $value): voidhasSuperGlobal(string $name): boolgetSuperGlobals(): arraygetGlobals(): array$GLOBALS of environment.
getGlobal(string $name): mixedhasGlobal(string $name): boolsetGlobal(string $name, mixed $value): void