Documentation

CommonThreadPartsTrait

Table of Contents

$composerAutoloaderPath  : string|null
$isKilled  : bool
$classLoaders  : Threaded|null
getClassLoaders()  : array<string|int, ClassLoader>
getThreadName()  : string
registerClassLoaders()  : void
Registers the class loaders for this thread.
run()  : void
setClassLoaders()  : void
onRun()  : void
Runs code on the thread.

Properties

Methods

registerClassLoaders()

Registers the class loaders for this thread.

public registerClassLoaders() : void

WARNING: This method MUST be called from any descendent threads' run() method to make autoloading usable. If you do not do this, you will not be able to use new classes that were not loaded when the thread was started (unless you are using a custom autoloader).

Return values
void

Search results