/** * @param \Vinelab\UrlShortener\Base\ConfigManager $config * @param null $httpClient The http Client 'will be injected here (mocked) for testing' */ public function __construct(ConfigManager $config, $httpClient = null) { $this->setDriverName($config->driverName()); $this->setDriverParameters($config->driverParameters($this->getDriverName())); $this->setHttpClient($httpClient); }