Skip to content
Snippets Groups Projects

ArgumentCountError: Too Few Arguments Passed to ConfigFormBase Constructor

Open Vishal Kumar requested to merge issue/lazy-3511152:4.0.x into 4.0.x
1 file
+ 7
3
Compare changes
  • Side-by-side
  • Inline
+ 7
3
@@ -15,6 +15,7 @@ use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Url;
use Drupal\lazy\LazyInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
/**
* Configure Lazy settings for this site.
@@ -61,9 +62,11 @@ class LazyForm extends ConfigFormBase {
* The module handler.
* @param \Drupal\Core\Condition\ConditionManager $condition_manager
* The condition plugin manager.
* @param \Drupal\Core\Config\TypedConfigManagerInterface $typed_config_manager
* The typed configuration manager.
*/
public function __construct(ConfigFactoryInterface $config_factory, LazyInterface $lazy_load, ModuleHandlerInterface $module_handler, ConditionManager $condition_manager) {
parent::__construct($config_factory);
public function __construct(ConfigFactoryInterface $config_factory, LazyInterface $lazy_load, ModuleHandlerInterface $module_handler, ConditionManager $condition_manager, TypedConfigManagerInterface $typed_config_manager) {
parent::__construct($config_factory, $typed_config_manager);
$this->lazyLoad = $lazy_load;
$this->moduleHandler = $module_handler;
$this->condition = $condition_manager->createInstance('request_path');
@@ -83,7 +86,8 @@ class LazyForm extends ConfigFormBase {
$container->get('config.factory'),
$container->get('lazy'),
$container->get('module_handler'),
$container->get('plugin.manager.condition')
$container->get('plugin.manager.condition'),
$container->get('config.typed')
);
}
Loading