Skip to content

Commit

Permalink
Issue #83: Remove unused service injection.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea committed Jun 5, 2019
1 parent 36d7c10 commit a373569
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/Form/AuthenticationSettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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}
*/
Expand Down

0 comments on commit a373569

Please sign in to comment.