ApplicationInstall
A document representing one configured install of one Application. Persisted in MongoDB; managed by ApplicationInstallRepository and ApplicationManager.
use Hanaboso\PipesPhpSdk\Application\Document\ApplicationInstall;
Methods provided #
| Method | Returns | Purpose |
|---|---|---|
getKey() | string | Application name (matches getName() of the Application class). |
getUser() | string | User identifier this install belongs to. |
getSettings() | array | Form values, organized by form key. Decrypted on read. |
addSettings(array $values) | self | Merge encrypted settings (credentials, tokens). |
getNonEncryptedSettings() | array | Form values not subject to encryption. |
addNonEncryptedSettings(array $values) | self | Merge non-encrypted settings. |
getCreated() / getUpdated() | DateTimeImmutable | Lifecycle timestamps. |
Persistence #
$install = $this->getApplicationInstallFromProcess($dto);
$install->addNonEncryptedSettings(['lastSyncAt' => $now->format(DATE_ATOM)]);
$this->applicationInstallRepository->update($install);
See also #
- ApplicationAbstract
- Development: Authentication and settings
- Node.js equivalent:
ApplicationInstall