Fixed invalid imports after class refactoring

This commit is contained in:
Alejandro Celaya
2020-05-08 10:29:24 +02:00
parent 9a78fd1a26
commit 06c59fe2dd
11 changed files with 20 additions and 17 deletions

View File

@@ -11,6 +11,7 @@ use Laminas\ServiceManager\Factory\InvokableFactory;
use Shlinkio\Shlink\CLI\Util\GeolocationDbUpdater;
use Shlinkio\Shlink\Common\Doctrine\NoDbNameConnectionFactory;
use Shlinkio\Shlink\Core\Service;
use Shlinkio\Shlink\Core\Tag\TagService;
use Shlinkio\Shlink\Core\Visit;
use Shlinkio\Shlink\Installer\Factory\ProcessHelperFactory;
use Shlinkio\Shlink\IpGeolocation\GeoLite2\DbUpdater;
@@ -78,10 +79,10 @@ return [
Command\Api\DisableKeyCommand::class => [ApiKeyService::class],
Command\Api\ListKeysCommand::class => [ApiKeyService::class],
Command\Tag\ListTagsCommand::class => [\Shlinkio\Shlink\Core\Tag\TagService::class],
Command\Tag\CreateTagCommand::class => [\Shlinkio\Shlink\Core\Tag\TagService::class],
Command\Tag\RenameTagCommand::class => [\Shlinkio\Shlink\Core\Tag\TagService::class],
Command\Tag\DeleteTagsCommand::class => [\Shlinkio\Shlink\Core\Tag\TagService::class],
Command\Tag\ListTagsCommand::class => [TagService::class],
Command\Tag\CreateTagCommand::class => [TagService::class],
Command\Tag\RenameTagCommand::class => [TagService::class],
Command\Tag\DeleteTagsCommand::class => [TagService::class],
Command\Db\CreateDatabaseCommand::class => [
LockFactory::class,

View File

@@ -16,9 +16,9 @@ class DeleteTagsCommand extends Command
{
public const NAME = 'tag:delete';
private \Shlinkio\Shlink\Core\Tag\TagServiceInterface $tagService;
private TagServiceInterface $tagService;
public function __construct(\Shlinkio\Shlink\Core\Tag\TagServiceInterface $tagService)
public function __construct(TagServiceInterface $tagService)
{
parent::__construct();
$this->tagService = $tagService;

View File

@@ -20,7 +20,7 @@ class RenameTagCommand extends Command
private TagServiceInterface $tagService;
public function __construct(\Shlinkio\Shlink\Core\Tag\TagServiceInterface $tagService)
public function __construct(TagServiceInterface $tagService)
{
parent::__construct();
$this->tagService = $tagService;

View File

@@ -18,7 +18,7 @@ class DeleteTagsCommandTest extends TestCase
public function setUp(): void
{
$this->tagService = $this->prophesize(\Shlinkio\Shlink\Core\Tag\TagServiceInterface::class);
$this->tagService = $this->prophesize(TagServiceInterface::class);
$command = new DeleteTagsCommand($this->tagService->reveal());
$app = new Application();

View File

@@ -19,7 +19,7 @@ class ListTagsCommandTest extends TestCase
public function setUp(): void
{
$this->tagService = $this->prophesize(\Shlinkio\Shlink\Core\Tag\TagServiceInterface::class);
$this->tagService = $this->prophesize(TagServiceInterface::class);
$command = new ListTagsCommand($this->tagService->reveal());
$app = new Application();