Unverified Commit d397f60c authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2509652 by willzyx, TR, Berdir: Remove unused and deprecated...

Issue #2509652 by willzyx, TR, Berdir: Remove unused and deprecated entity.manager service injection in CommentTypeDeleteForm
parent 5614f828
Loading
Loading
Loading
Loading
+1 −13
Changes for core/modules/comment/src/Form/CommentTypeDeleteForm.php: 1 added line, 13 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@

use Drupal\comment\CommentManagerInterface;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Entity\EntityManager;
use Drupal\Core\Form\FormStateInterface;
use Drupal\field\Entity\FieldStorageConfig;
use Psr\Log\LoggerInterface;
@@ -24,13 +23,6 @@ class CommentTypeDeleteForm extends EntityDeleteForm {
   */
  protected $commentManager;

  /**
   * The entity manager service.
   *
   * @var \Drupal\Core\Entity\EntityManager
   */
  protected $entityManager;

  /**
   * A logger instance.
   *
@@ -50,14 +42,11 @@ class CommentTypeDeleteForm extends EntityDeleteForm {
   *
   * @param \Drupal\comment\CommentManagerInterface $comment_manager
   *   The comment manager service.
   * @param \Drupal\Core\Entity\EntityManager $entity_manager
   *   The entity manager service.
   * @param \Psr\Log\LoggerInterface $logger
   *   A logger instance.
   */
  public function __construct(CommentManagerInterface $comment_manager, EntityManager $entity_manager, LoggerInterface $logger) {
  public function __construct(CommentManagerInterface $comment_manager, LoggerInterface $logger) {
    $this->commentManager = $comment_manager;
    $this->entityManager = $entity_manager;
    $this->logger = $logger;
  }

@@ -67,7 +56,6 @@ public function __construct(CommentManagerInterface $comment_manager, EntityMana
  public static function create(ContainerInterface $container) {
    return new static(
      $container->get('comment.manager'),
      $container->get('entity.manager'),
      $container->get('logger.factory')->get('comment')
    );
  }