public function ContributeManager::__construct in Contribute 8
Constructs a new ContributeManager object.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $cache: The default cache bin.
\GuzzleHttp\ClientInterface $http_client: The Guzzle HTTP client.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
File
- src/
ContributeManager.php, line 95
Class
- ContributeManager
- Class ContributeManager.
Namespace
Drupal\contributeCode
public function __construct(CacheBackendInterface $cache, ClientInterface $http_client, DateFormatterInterface $date_formatter, ConfigFactoryInterface $config_factory) {
$this->cache = $cache;
$this->httpClient = $http_client;
$this->dateFormatter = $date_formatter;
$this->configFactory = $config_factory;
$this->status = $this->configFactory
->get('contribute.settings')
->get('status');
$this->accountType = $this->configFactory
->get('contribute.settings')
->get('account_type');
$this->accountId = $this->configFactory
->get('contribute.settings')
->get('account_id');
}