Skip to content

Commit

Permalink
More fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Dec 17, 2024
1 parent 120fc13 commit bdb8bfe
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions module/VuFind/config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,7 @@
'Laminas\Session\SessionManager' => 'VuFind\Session\ManagerFactory',
],
'delegators' => [
// This interface has been deprecated, but it is still used by Laminas code and cannot be changed yet:
'Laminas\I18n\Translator\TranslatorInterface' => [
'Laminas\Mvc\I18n\Translator' => [
'VuFind\I18n\Translator\TranslatorFactory',
],
'SlmLocale\Locale\Detector' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

namespace VuFind\I18n\Translator;

use Laminas\I18n\Translator\Translator;
use Laminas\Mvc\I18n\Translator;
use VuFind\Config\PathResolver;
use VuFind\I18n\Locale\LocaleSettings;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

/**
* Lightweight translator aware marker interface (used as an alternative to
* \Laminas\I18n\Translator\TranslatorAwareInterface, which requires an excessive
* \Laminas\Mvc\I18n\TranslatorAwareInterface, which requires an excessive
* number of methods to be implemented).
*
* @category VuFind
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

namespace VuFind\I18n\Translator;

use Laminas\I18n\Translator\Translator;
use Laminas\Mvc\I18n\Translator;
use Laminas\ServiceManager\Exception\ServiceNotCreatedException;
use Laminas\ServiceManager\Exception\ServiceNotFoundException;
use Laminas\ServiceManager\Factory\DelegatorFactoryInterface;
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/ILS/Driver/Aleph.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

namespace VuFind\ILS\Driver;

use Laminas\I18n\Translator\Translator;
use Laminas\Mvc\I18n\Translator;
use VuFind\Date\DateException;
use VuFind\Exception\ILS as ILSException;

Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFindTest/Feature/TranslatorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

namespace VuFindTest\Feature;

use Laminas\I18n\Translator\Translator;
use Laminas\Mvc\I18n\Translator;
use PHPUnit\Framework\MockObject\MockObject;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ public function testLocaleWithoutTranslator(): void
public function testLocaleWithTranslator(): void
{
$translate = new Translate();
$translator = $this->createMock(\Laminas\I18n\Translator\Translator::class);
$translator = $this->createMock(\Laminas\Mvc\I18n\Translator::class);
$translator->expects($this->once())->method('getLocale')
->will($this->returnValue('foo'));
$translate->setTranslator($translator);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
namespace VuFindTest\Command\ScheduledSearch;

use DateTime;
use Laminas\I18n\Translator\Translator;
use Laminas\Mvc\I18n\Translator;
use PHPUnit\Framework\MockObject\MockObject;
use Symfony\Component\Console\Tester\CommandTester;
use VuFind\Db\Entity\SearchEntityInterface;
Expand Down

0 comments on commit bdb8bfe

Please sign in to comment.