danielpanzella/platformsh-client-php-bundle

A bundle for the Platform.sh PHP API Client

v1.1 2017-07-17 00:38 UTC

This package is not auto-updated.

Last update: 2024-04-14 00:33:41 UTC


README

A Symfony Bundle for the Platform.sh PHP Client (https://github.com/platformsh/platformsh-client-php).

Configuration

platform_client:
    api_token: <platform API Token>
    api_token_type: <API Token type>

Access the Service:

By Service ID from the container

$this->get('Platformsh\Client\PlatformClient');

Symfony 3.3+ Autowiring

public function __construct(\Platformsh\Client\PlatformClient $platformClient)
{
    $this->platformClient = $platformClient;
}