for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dolibarr\Client\Security\Authentication;
use Webmozart\Assert\Assert;
/**
* Token based authentication on the Dolibarr API.
*
* @author Laurent De Coninck <[email protected]>
*/
class TokenAuthentication extends AbstractAuthentication
{
* @param string $token
public function __construct($token)
Assert::stringNotEmpty($token);
parent::__construct();
$this->addHeader('Dolapikey', $token);
}