PHPDaemon\Core\AppResolver::getInstanceByAppName PHP Method

getInstanceByAppName() public method

Gets instance of application
public getInstanceByAppName ( string $appName, string $instance = '', boolean $spawn = true, boolean $preload = false ) : object
$appName string Application name
$instance string Instance name
$spawn boolean If true, we spawn an instance if absent
$preload boolean If true, worker is at the preload stage
return object AppInstance
    public function getInstanceByAppName($appName, $instance = '', $spawn = true, $preload = false)
    {
        return $this->getInstance($appName, $instance, $spawn, $preload);
    }