From a3735699f2f526389ab969680d10d651a05e2b55 Mon Sep 17 00:00:00 2001 From: Claudiu Cristea Date: Wed, 5 Jun 2019 12:26:00 +0300 Subject: [PATCH] Issue #83: Remove unused service injection. --- src/Form/AuthenticationSettingsForm.php | 33 ------------------------- 1 file changed, 33 deletions(-) diff --git a/src/Form/AuthenticationSettingsForm.php b/src/Form/AuthenticationSettingsForm.php index 219b616..e27b961 100644 --- a/src/Form/AuthenticationSettingsForm.php +++ b/src/Form/AuthenticationSettingsForm.php @@ -4,11 +4,8 @@ namespace Drupal\oe_authentication\Form; -use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; -use Drupal\Core\Routing\RouteBuilderInterface; -use Symfony\Component\DependencyInjection\ContainerInterface; /** * Settings form for module. @@ -20,36 +17,6 @@ class AuthenticationSettingsForm extends ConfigFormBase { */ const CONFIG_NAME = 'oe_authentication.settings'; - /** - * The route builder service. - * - * @var \Drupal\Core\Routing\RouteBuilderInterface - */ - protected $routeBuilder; - - /** - * Constructs a new form instance. - * - * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory - * The factory for configuration objects. - * @param \Drupal\Core\Routing\RouteBuilderInterface $route_builder - * The route builder service. - */ - public function __construct(ConfigFactoryInterface $config_factory, RouteBuilderInterface $route_builder) { - parent::__construct($config_factory); - $this->routeBuilder = $route_builder; - } - - /** - * {@inheritdoc} - */ - public static function create(ContainerInterface $container) { - return new static( - $container->get('config.factory'), - $container->get('router.builder') - ); - } - /** * {@inheritdoc} */