Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
- removal of client
- added replacement FilemakerDataApi
  • Loading branch information
TMBL-DEV committed Dec 12, 2023
1 parent fd3574c commit e7c9543
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 146 deletions.
2 changes: 1 addition & 1 deletion src/Api/ApiAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstract class ApiAbstract
protected bool $includeLayout = true;

public function __construct(
public Client $client,
public FileMakerDataApi $client,
private ?string $layoutName = null
) {
}
Expand Down
145 changes: 0 additions & 145 deletions src/Client.php

This file was deleted.

12 changes: 12 additions & 0 deletions src/FileMakerDataApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@ public function getDataContainerToken(string $dataContainerObjectUrl): ?string
return $this->connector->getDataContainerToken($dataContainerObjectUrl);
}

/**
* @throws InvalidArgumentException
*/
public function getSessionToken(bool $validateSession = true): ?string
{
if ($validateSession) {
$this->validateSession();
}

return $this->getSessionTokenFromCache();
}

/**
* @throws InvalidArgumentException
* @throws Exception
Expand Down

0 comments on commit e7c9543

Please sign in to comment.