AppserverIo\Appserver\Core\ApplicationServer::newService PHP Méthode

newService() public méthode

Returns a new instance of the passed API service.
See also: AppserverIo\Appserver\Core\InitialContext::newService()
public newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface
$className string The API service class name to return the instance for
Résultat AppserverIo\Appserver\Core\Api\ServiceInterface The service instance
    public function newService($className)
    {
        return $this->getInitialContext()->newService($className);
    }