Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 901 Bytes

adapter_gitlab.md

File metadata and controls

31 lines (25 loc) · 901 Bytes

Use the Gitlab adapter

In order to use the Gitlab adapter, you first need to create a Gitlab client service. This can be done with the following configuration. Read more about instantiating the Gitlab client at github.com/RoyVoetman/flysystem-gitlab-storage.

services:
    acme.gitlab_client:
        class: RoyVoetman\FlysystemGitlab\Client
        arguments:
            - 'project-id'
            - 'branch'
            - 'base-url'
            - 'personal-access-token'

Set this service as the value of the client key in the oneup_flysystem configuration.

oneup_flysystem:
    adapters:
        acme.gitlab_adapter:
            gitlab:
                client: acme.gitlab_client
                prefix: 'optional/path/prefix'

More to know