You are here

public function CssW3Form::__construct in Advanced CSS/JS Aggregation 8.3

Same name and namespace in other branches
  1. 8.2 advagg_validator/src/Form/CssW3Form.php \Drupal\advagg_validator\Form\CssW3Form::__construct()

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: Request stack that controls the lifecycle of requests.

\GuzzleHttp\Client $http_client: The Guzzle HTTP Client.

\Drupal\Core\Render\RendererInterface $renderer: The Drupal renderer.

Overrides AdvaggFormBase::__construct

File

advagg_validator/src/Form/CssW3Form.php, line 45

Class

CssW3Form
Configure form for W3C validation of CSS files.

Namespace

Drupal\advagg_validator\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request_stack, Client $http_client, RendererInterface $renderer) {
  parent::__construct($config_factory, $request_stack);
  $this->requestStack = $request_stack;
  $this->httpClient = $http_client;
  $this->renderer = $renderer;
}