public function Domain301RedirectManager::__construct in Domain 301 Redirect 8
Constructs an Domain301RedirectManager object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The Configuration Factory.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\PrivateKey $private_key: The site private key.
\GuzzleHttp\ClientInterface $client: The http client.
File
- src/
Domain301RedirectManager.php, line 60
Class
- Domain301RedirectManager
- Defines an Domain301RedirectManager service.
Namespace
Drupal\domain_301_redirectCode
public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request_stack, PrivateKey $private_key, ClientInterface $client) {
$this->config = $config_factory
->get('domain_301_redirect.settings');
$this->request = $request_stack
->getCurrentRequest();
$this->privateKey = $private_key;
$this->client = $client;
}