PHPDaemon\Core\AppInstance::getInstance PHP Method

getInstance() public static method

public static getInstance ( string $name, boolean $spawn = true ) : AppInstance
$name string Instance name
$spawn boolean If true, we spawn an instance if absent
return AppInstance
    public static function getInstance($name, $spawn = true)
    {
        return Daemon::$appResolver->getInstanceByAppName('\\' . get_called_class(), $name, $spawn);
    }