AppserverIo\Appserver\Core\AbstractContainerThread::newInstance PHP Метод

newInstance() публичный Метод

(non-PHPdoc)
См. также: AppserverIo\Appserver\Core\InitialContext::newInstance()
public newInstance ( string $className, array $args = [] ) : object
$className string The fully qualified class name to return the instance for
$args array Arguments to pass to the constructor of the instance
Результат object The instance itself
    public function newInstance($className, array $args = array())
    {
        return $this->getInitialContext()->newInstance($className, $args);
    }