/** @var array{app_secret: non-empty-string, privileges: string} $row */
$row =
$this->connection->
fetchAssociative('SELECT
`app`.app_secret,
`acl_role`.privileges
FROM `app`
LEFT JOIN acl_role ON app.acl_role_id = acl_role.id
WHERE `app`.name = ? AND
active = 1',
[$name]);
if (empty($row)) { throw AppException::
notFound($name);
} $row['privileges'
] =
json_decode($row['privileges'
], true, 512, \JSON_THROW_ON_ERROR
);
return $row;
}}