This commit is contained in:
Carlos Buenosvinos
2022-03-15 08:25:24 +01:00
parent effc10f34f
commit 8e57007572
3 changed files with 1 additions and 3 deletions

View File

@@ -8,12 +8,12 @@ use App\Messenger\CommandBus;
use Cheeper\AllChapters\DomainModel\Author\AuthorDoesNotExist;
use Cheeper\Chapter7\Application\Author\Command\FollowCommand;
use InvalidArgumentException;
use function json_decode;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use function json_decode;
final class FollowAuthorController extends AbstractController
{

View File

@@ -36,7 +36,6 @@ final class PostCheepController extends AbstractController
$commandBus->handle($command);
$httpContent['data']['cheep_id'] = $command->cheepId();
} catch (
AuthorDoesNotExist
| InvalidArgumentException $exception

View File

@@ -4,7 +4,6 @@ declare(strict_types=1);
namespace Cheeper\Chapter7\Application\Cheep\Projection;
use Cheeper\Chapter7\Application\Author\Projection\CreateFollowersCounterProjectionHandler;
use Redis;
//snippet add-cheep-to-timeline-projector