Commit 534177b1 authored by Samvada_Jain_M's avatar Samvada_Jain_M Committed by pifagor

Issue #3116638 by edemidenko, salah1, Samvada_Jain_M, ilgnerfagundes,...

Issue #3116638 by edemidenko, salah1, Samvada_Jain_M, ilgnerfagundes, alex_optim, neclimdul, vuil, atul4drupal: Replace the deprecated Drupal\Core\Path\AliasManagerInterface
parent 17447841
......@@ -8,7 +8,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Http\ClientFactory;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\Path\AliasManagerInterface;
use Drupal\path_alias\AliasManagerInterface;
use Drupal\Core\Url;
use Drupal\xmlsitemap\XmlSitemapLinkStorageInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -35,7 +35,7 @@ class XmlSitemapCustomAddForm extends FormBase {
/**
* The alias manager service.
*
* @var \Drupal\Core\Path\AliasManagerInterface
* @var \Drupal\path_alias\AliasManagerInterface
*/
protected $aliasManager;
......@@ -60,7 +60,7 @@ class XmlSitemapCustomAddForm extends FormBase {
* The database connection.
* @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
* The language manager service.
* @param \Drupal\Core\Path\AliasManagerInterface $alias_manager
* @param \Drupal\path_alias\AliasManagerInterface $alias_manager
* The path alias manager service.
* @param \Drupal\Core\Http\ClientFactory $http_client_factory
* A Guzzle client object.
......@@ -82,7 +82,7 @@ class XmlSitemapCustomAddForm extends FormBase {
return new static(
$container->get('database'),
$container->get('language_manager'),
$container->get('path.alias_manager'),
$container->get('path_alias.manager'),
$container->get('http_client_factory'),
$container->get('xmlsitemap.link_storage')
);
......
......@@ -7,7 +7,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Http\ClientFactory;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\Path\AliasManagerInterface;
use Drupal\path_alias\AliasManagerInterface;
use Drupal\Core\Url;
use Drupal\xmlsitemap\XmlSitemapLinkStorageInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -38,7 +38,7 @@ class XmlSitemapCustomEditForm extends FormBase {
/**
* The alias manager service.
*
* @var \Drupal\Core\Path\AliasManagerInterface
* @var \Drupal\path_alias\AliasManagerInterface
*/
protected $aliasManager;
......@@ -61,7 +61,7 @@ class XmlSitemapCustomEditForm extends FormBase {
*
* @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
* The language manager service.
* @param \Drupal\Core\Path\AliasManagerInterface $alias_manager
* @param \Drupal\path_alias\AliasManagerInterface $alias_manager
* The path alias manager service.
* @param \Drupal\Core\Http\ClientFactory $http_client_factory
* A Guzzle client object.
......@@ -81,7 +81,7 @@ class XmlSitemapCustomEditForm extends FormBase {
public static function create(ContainerInterface $container) {
return new static(
$container->get('language_manager'),
$container->get('path.alias_manager'),
$container->get('path_alias.manager'),
$container->get('http_client_factory'),
$container->get('xmlsitemap.link_storage')
);
......
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