Skip to content
Snippets Groups Projects
Commit b7cd8c35 authored by Ankit Pathak's avatar Ankit Pathak
Browse files

Checking without constructor and create method.

parent 36a2f3bb
No related branches found
No related tags found
1 merge request!54Automated Project Update Bot fixes from run 11-188815.
......@@ -13,39 +13,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*/
class SettingsForm extends ConfigFormBase {
/**
* The typed config service.
*
* @var \Drupal\Core\Config\TypedConfigManagerInterface
*/
protected TypedConfigManagerInterface $typedConfigManager;
/**
* SettingsForm constructor.
*
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects.
* @param \Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager
* The typed config service.
*/
public function __construct(
ConfigFactoryInterface $config_factory,
TypedConfigManagerInterface $typedConfigManager
) {
parent::__construct($config_factory, $typedConfigManager);
$this->typedConfigManager = $typedConfigManager;
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('config.typed')
);
}
/**
* {@inheritdoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment