for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of GetCake PHP Client.
*
* (c) DraperStudio <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Apivore\GetCake\Request\Modifiers;
use Apivore\Core\Contracts\HttpClient;
use Apivore\Core\Request\Modifier;
class ApiKeyModifier extends Modifier
{
public function apply()
$this->httpClient->addQuery('api_key', $this->httpClient->getConfig('apiKey'));
return $this->httpClient;
}