From 095f075ca95fabd20c145796e5392678a5c4f3a3 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 11 Aug 2019 19:47:15 +0200 Subject: [PATCH] Moved PreviewGenerationException to PreviewGenerator module --- module/CLI/src/Command/ShortUrl/GeneratePreviewCommand.php | 2 +- module/CLI/test/Command/ShortUrl/GeneratePreviewCommandTest.php | 2 +- module/Core/src/Action/PreviewAction.php | 2 +- .../src/Exception/PreviewGenerationException.php | 2 +- module/PreviewGenerator/src/Service/PreviewGenerator.php | 2 +- .../PreviewGenerator/src/Service/PreviewGeneratorInterface.php | 2 +- module/PreviewGenerator/test/Service/PreviewGeneratorTest.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename module/{Common => PreviewGenerator}/src/Exception/PreviewGenerationException.php (85%) diff --git a/module/CLI/src/Command/ShortUrl/GeneratePreviewCommand.php b/module/CLI/src/Command/ShortUrl/GeneratePreviewCommand.php index 3f33f7b0..22c4a998 100644 --- a/module/CLI/src/Command/ShortUrl/GeneratePreviewCommand.php +++ b/module/CLI/src/Command/ShortUrl/GeneratePreviewCommand.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace Shlinkio\Shlink\CLI\Command\ShortUrl; use Shlinkio\Shlink\CLI\Util\ExitCodes; -use Shlinkio\Shlink\Common\Exception\PreviewGenerationException; use Shlinkio\Shlink\Core\Service\ShortUrlServiceInterface; +use Shlinkio\Shlink\PreviewGenerator\Exception\PreviewGenerationException; use Shlinkio\Shlink\PreviewGenerator\Service\PreviewGeneratorInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; diff --git a/module/CLI/test/Command/ShortUrl/GeneratePreviewCommandTest.php b/module/CLI/test/Command/ShortUrl/GeneratePreviewCommandTest.php index 80e7222f..f4ea4c92 100644 --- a/module/CLI/test/Command/ShortUrl/GeneratePreviewCommandTest.php +++ b/module/CLI/test/Command/ShortUrl/GeneratePreviewCommandTest.php @@ -7,9 +7,9 @@ use PHPUnit\Framework\TestCase; use Prophecy\Argument; use Prophecy\Prophecy\ObjectProphecy; use Shlinkio\Shlink\CLI\Command\ShortUrl\GeneratePreviewCommand; -use Shlinkio\Shlink\Common\Exception\PreviewGenerationException; use Shlinkio\Shlink\Core\Entity\ShortUrl; use Shlinkio\Shlink\Core\Service\ShortUrlService; +use Shlinkio\Shlink\PreviewGenerator\Exception\PreviewGenerationException; use Shlinkio\Shlink\PreviewGenerator\Service\PreviewGenerator; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; diff --git a/module/Core/src/Action/PreviewAction.php b/module/Core/src/Action/PreviewAction.php index 5ada47ec..276c7ba5 100644 --- a/module/Core/src/Action/PreviewAction.php +++ b/module/Core/src/Action/PreviewAction.php @@ -9,12 +9,12 @@ use Psr\Http\Server\MiddlewareInterface; use Psr\Http\Server\RequestHandlerInterface; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; -use Shlinkio\Shlink\Common\Exception\PreviewGenerationException; use Shlinkio\Shlink\Common\Response\ResponseUtilsTrait; use Shlinkio\Shlink\Core\Action\Util\ErrorResponseBuilderTrait; use Shlinkio\Shlink\Core\Exception\EntityDoesNotExistException; use Shlinkio\Shlink\Core\Exception\InvalidShortCodeException; use Shlinkio\Shlink\Core\Service\UrlShortenerInterface; +use Shlinkio\Shlink\PreviewGenerator\Exception\PreviewGenerationException; use Shlinkio\Shlink\PreviewGenerator\Service\PreviewGeneratorInterface; /** @deprecated */ diff --git a/module/Common/src/Exception/PreviewGenerationException.php b/module/PreviewGenerator/src/Exception/PreviewGenerationException.php similarity index 85% rename from module/Common/src/Exception/PreviewGenerationException.php rename to module/PreviewGenerator/src/Exception/PreviewGenerationException.php index a889474a..c02ea7ed 100644 --- a/module/Common/src/Exception/PreviewGenerationException.php +++ b/module/PreviewGenerator/src/Exception/PreviewGenerationException.php @@ -1,7 +1,7 @@