Appearance
CurlGitLabApi
php
final readonly class Zairakai\LaravelDevTools\Update\CurlGitLabApi implements GitLabApiA call of the API of GitLab.
Source: src/Update/CurlGitLabApi.php
Methods
__construct()
php
public function __construct(Shell $shell)call()
php
public function call(string $method, string $path, array $body = null, string $token = null): array| Parameter | Description |
|---|---|
$token | The token of the call, GITLAB_TOKEN when not given. |
Returns array{status: int, ok: bool, data: mixed}
startUpdate()
php
public function startUpdate(string $projectId, string $token = null): arrayStarts the update of the dependencies in a project: a pipeline of develop with UPDATE_DEPENDENCIES.
Returns array{status: int, ok: bool, data: mixed}