Inject string fails in Flow 4.0

This doesn’t work in Flow 4.0 any more (was OK in Flow 3.x):

use Neos\Flow\Annotations as Flow;

 * @var string
 * @Flow\Inject(setting="http.baseUri", package="Neos.Flow")
protected $baseUri;

The error message is:

The object “string” which was specified as a property in the object configuration of object “Aimeos\Shop\Command\AimeosCommandController” (configuration of package Aimeos.Shop, definition for object “Aimeos\Shop\Command\AimeosCommandController”) does not exist.

What’s the correct syntax now for retrieving strings?

Inject was deprecated some time ago for getting Settings. To retrieve settings, use the InjectConfiguration annotation. var string is obviously still correct.