Unverified Commit 58521d4e authored by thalles's avatar thalles Committed by Dave Reid

Issue #3048609 by thalles: Replace typehints for DateFormatter to DateFormatterInterface.

parent cd19176a
......@@ -9,7 +9,7 @@ use Drupal\Core\Site\Settings;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Datetime\DateFormatter;
use Drupal\Core\Datetime\DateFormatterInterface;
use Drupal\xmlsitemap\XmlSitemapLinkStorageInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -28,7 +28,7 @@ class XmlSitemapSettingsForm extends ConfigFormBase {
/**
* The date service.
*
* @var \Drupal\Core\Datetime\DateFormatter
* @var \Drupal\Core\Datetime\DateFormatterInterface
*/
protected $date;
......@@ -46,12 +46,12 @@ class XmlSitemapSettingsForm extends ConfigFormBase {
* The factory for configuration objects.
* @param \Drupal\Core\State\StateInterface $state
* The state service.
* @param \Drupal\Core\Datetime\DateFormatter $date
* @param \Drupal\Core\Datetime\DateFormatterInterface $date
* The date formatter service.
* @param \Drupal\xmlsitemap\XmlSitemapLinkStorageInterface $link_storage
* The xmlsitemap link storage service.
*/
public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state, DateFormatter $date, XmlSitemapLinkStorageInterface $link_storage) {
public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state, DateFormatterInterface $date, XmlSitemapLinkStorageInterface $link_storage) {
parent::__construct($config_factory);
$this->state = $state;
......
......@@ -8,7 +8,7 @@ use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Datetime\DateFormatter;
use Drupal\Core\Datetime\DateFormatterInterface;
use Drupal\Core\Form\FormStateInterface;
/**
......@@ -26,7 +26,7 @@ class XmlSitemapEnginesSettingsForm extends ConfigFormBase {
/**
* The date formatter service.
*
* @var \Drupal\Core\Datetime\DateFormatter
* @var \Drupal\Core\Datetime\DateFormatterInterface
*/
protected $date;
......@@ -35,12 +35,12 @@ class XmlSitemapEnginesSettingsForm extends ConfigFormBase {
*
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects.
* @param \Drupal\Core\Datetime\DateFormatter $date
* @param \Drupal\Core\Datetime\DateFormatterInterface $date
* The date service.
* @param \Drupal\Core\State\StateInterface $state
* The state store service.
*/
public function __construct(ConfigFactoryInterface $config_factory, DateFormatter $date, StateInterface $state) {
public function __construct(ConfigFactoryInterface $config_factory, DateFormatterInterface $date, StateInterface $state) {
parent::__construct($config_factory);
$this->date = $date;
......
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