Commit 14ea687e authored by webchick's avatar webchick

Issue #2286433 by ParisLiakos: Fixed CommentTypeForm and CommentTypeDeleteForm...

Issue #2286433 by ParisLiakos: Fixed CommentTypeForm and CommentTypeDeleteForm should typehint the PSR logger interface.
parent 4cfb1d8f
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
use Drupal\Core\Entity\EntityForm; use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Logger\LoggerChannelInterface; use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
...@@ -26,9 +26,9 @@ class CommentTypeForm extends EntityForm { ...@@ -26,9 +26,9 @@ class CommentTypeForm extends EntityForm {
protected $entityManager; protected $entityManager;
/** /**
* Logger Channel service. * A logger instance.
* *
* @var \Drupal\Core\Logger\LoggerChannelInterface * @var \Psr\Log\LoggerInterface
*/ */
protected $logger; protected $logger;
...@@ -47,10 +47,10 @@ public static function create(ContainerInterface $container) { ...@@ -47,10 +47,10 @@ public static function create(ContainerInterface $container) {
* *
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
* The entity manager service. * The entity manager service.
* @param \Drupal\Core\Logger\LoggerChannelInterface * @param \Psr\Log\LoggerInterface $logger
* The logger channel. * A logger instance.
*/ */
function __construct(EntityManagerInterface $entity_manager, LoggerChannelInterface $logger) { public function __construct(EntityManagerInterface $entity_manager, LoggerInterface $logger) {
$this->entityManager = $entity_manager; $this->entityManager = $entity_manager;
$this->logger = $logger; $this->logger = $logger;
} }
......
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
use Drupal\Core\Entity\EntityConfirmFormBase; use Drupal\Core\Entity\EntityConfirmFormBase;
use Drupal\Core\Entity\EntityManager; use Drupal\Core\Entity\EntityManager;
use Drupal\Core\Entity\Query\QueryFactory; use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Logger\LoggerChannelInterface;
use Drupal\Core\Url; use Drupal\Core\Url;
use Drupal\field\Entity\FieldConfig; use Drupal\field\Entity\FieldConfig;
use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
...@@ -43,9 +43,9 @@ class CommentTypeDeleteForm extends EntityConfirmFormBase { ...@@ -43,9 +43,9 @@ class CommentTypeDeleteForm extends EntityConfirmFormBase {
protected $entityManager; protected $entityManager;
/** /**
* The comment channel logger. * A logger instance.
* *
* @var \Drupal\Core\Logger\LoggerChannelInterface * @var \Psr\Log\LoggerInterface
*/ */
protected $logger; protected $logger;
...@@ -65,10 +65,10 @@ class CommentTypeDeleteForm extends EntityConfirmFormBase { ...@@ -65,10 +65,10 @@ class CommentTypeDeleteForm extends EntityConfirmFormBase {
* The comment manager service. * The comment manager service.
* @param \Drupal\Core\Entity\EntityManager $entity_manager * @param \Drupal\Core\Entity\EntityManager $entity_manager
* The entity manager service. * The entity manager service.
* @param \Drupal\Core\Logger\LoggerChannelInterface $logger * @param \Psr\Log\LoggerInterface $logger
* The logger channel. * A logger instance.
*/ */
public function __construct(QueryFactory $query_factory, CommentManagerInterface $comment_manager, EntityManager $entity_manager, LoggerChannelInterface $logger) { public function __construct(QueryFactory $query_factory, CommentManagerInterface $comment_manager, EntityManager $entity_manager, LoggerInterface $logger) {
$this->queryFactory = $query_factory; $this->queryFactory = $query_factory;
$this->commentManager = $comment_manager; $this->commentManager = $comment_manager;
$this->entityManager = $entity_manager; $this->entityManager = $entity_manager;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment