Skip to content
Snippets Groups Projects

Address fatal errors

2 open threads

Closes #3394197

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
35 35 *
36 36 * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
37 37 * The factory for configuration objects.
38 * @param \Drupal\Core\Config\TypedConfigManagerInterface|null $typedConfigManager
38 * @param \Drupal\Core\Config\TypedConfigManagerInterface|null $_typedConfigManager
39 39 * The typed config manager.
40 40 */
41 41 public function __construct(
42 42 ConfigFactoryInterface $config_factory,
43 protected ?TypedConfigManagerInterface $typedConfigManager = NULL,
43 private ?TypedConfigManagerInterface $_typedConfigManager = NULL,
  • Adam G-H added 1 commit

    added 1 commit

    • 7b6e8419 - Only deprecate passing non-TypedConfigManagerInterface things into $typedConfigManager

    Compare with previous version

  • Adam G-H added 1 commit

    added 1 commit

    Compare with previous version

  • 40 40 */
    41 41 public function __construct(
    42 42 ConfigFactoryInterface $config_factory,
    43 protected ?TypedConfigManagerInterface $typedConfigManager = NULL,
    43 protected $typedConfigManager = NULL,
    44 44 ) {
    45 45 $this->setConfigFactory($config_factory);
    46 if ($this->typedConfigManager === NULL) {
    47 @trigger_error('Calling ConfigFormBase::__construct() without the $typedConfigManager argument is deprecated in drupal:10.2.0 and will be required in drupal:11.0.0. See https://www.drupal.org/node/3373502', E_USER_DEPRECATED);
    48 $this->typedConfigManager = \Drupal::service('config.typed');
    46
    47 if (!$typedConfigManager instanceof TypedConfigManagerInterface) {
    48 $type = get_debug_type($typedConfigManager);
  • Please register or sign in to reply
    Loading