Skip to content

Instantly share code, notes, and snippets.

@markrandall
Created April 7, 2021 01:20
Show Gist options
  • Save markrandall/6a72d54bda0b570cb3c062a0e3a9f28b to your computer and use it in GitHub Desktop.
Save markrandall/6a72d54bda0b570cb3c062a0e3a9f28b to your computer and use it in GitHub Desktop.
class SuperSekrit {
public function __construct(
#[FetchScalarFromService(MyConfigService, 'login.user')
private string $user,
#[FetchScalarFromService(MyConfigService, 'login.password')
private string $password
) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment