Skip to content

Commit

Permalink
Merge pull request #222 from quantcdn/feature/php82-deprecation
Browse files Browse the repository at this point in the history
Updated to code to handle php 8.2 deprecations.
  • Loading branch information
kepol authored Jan 31, 2024
2 parents 9824c54 + 5032f00 commit 9d82f5f
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 1 deletion.
7 changes: 7 additions & 0 deletions modules/quant_api/src/Client/QuantClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ class QuantClient implements QuantClientInterface {
*/
protected $logger;

/**
* The Guzzle client.
*
* @var \GuzzleHttp\Client
*/
protected $client;

/**
* The client account.
*
Expand Down
7 changes: 7 additions & 0 deletions modules/quant_api/src/Form/SettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class SettingsForm extends ConfigFormBase {

const SETTINGS = 'quant_api.settings';

/**
* The Quant API client.
*
* @var \Drupal\quant_api\Client\QuantClientInterface
*/
protected $client;

/**
* Build the form.
*/
Expand Down
9 changes: 8 additions & 1 deletion modules/quant_search/src/Controller/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ class Search extends ControllerBase {

const SETTINGS = 'quant_api.settings';

/**
* The Quant API client.
*
* @var \Drupal\quant_api\Client\QuantClientInterface
*/
protected $client;

/**
* Build the form.
*/
Expand Down Expand Up @@ -256,7 +263,7 @@ public static function generateSearchRecord($entity, $langcode = NULL) {

foreach ($entity->getTranslationLanguages() as $code => $lang) {
$language_label = \Drupal::service('string_translation')->translate($language->getName(), [], ['langcode' => $code]);
$record["language_${code}"] = $language_label;
$record["language_{$code}"] = $language_label;
}
}

Expand Down
7 changes: 7 additions & 0 deletions modules/quant_search/src/Form/SearchEntitiesForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class SearchEntitiesForm extends ConfigFormBase {

const SETTINGS = 'quant_search.entities.settings';

/**
* The Quant API client.
*
* @var \Drupal\quant_api\Client\QuantClientInterface
*/
protected $client;

/**
* Build the form.
*/
Expand Down
7 changes: 7 additions & 0 deletions modules/quant_search/src/Form/SearchIndexForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class SearchIndexForm extends ConfigFormBase {

const SETTINGS = 'quant_search.index.settings';

/**
* The Quant API client.
*
* @var \Drupal\quant_api\Client\QuantClientInterface
*/
protected $client;

/**
* Build the form.
*/
Expand Down
7 changes: 7 additions & 0 deletions modules/quant_search/src/Form/SearchPagesForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class SearchPagesForm extends ConfigFormBase {

const SETTINGS = 'quant_api.settings';

/**
* The Quant API client.
*
* @var \Drupal\quant_api\Client\QuantClientInterface
*/
protected $client;

/**
* Build the form.
*/
Expand Down

0 comments on commit 9d82f5f

Please sign in to comment.