/** * @param LoggerInterface $logger * @param RegistryInterface $doctrine * @param Redis $redis * @param SshKeysGenerator $sshKeysGenerator * @param Client $client */ public function __construct(LoggerInterface $logger, RegistryInterface $doctrine, Redis $redis, SshKeysGenerator $sshKeysGenerator, Client $client, $oauthKey, $oauthSecret) { $this->client = $client; $this->oauthKey = $oauthKey; $this->oauthSecret = $oauthSecret; parent::__construct($logger, $doctrine, $redis, $sshKeysGenerator); }
/** * @param LoggerInterface $logger * @param RegistryInterface $doctrine * @param Redis $redis * @param SshKeysGenerator $sshKeysGenerator * @param Client $client */ public function __construct(LoggerInterface $logger, RegistryInterface $doctrine, Redis $redis, SshKeysGenerator $sshKeysGenerator, Client $client) { $this->client = $client; $this->client->setDefaultOption('headers/Accept', 'application/vnd.github.v3'); parent::__construct($logger, $doctrine, $redis, $sshKeysGenerator); }