This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Controller; | |
use App\Entity\Cart; | |
use App\Entity\Product; | |
use Doctrine\Persistence\ManagerRegistry; | |
use Symfony\Component\HttpFoundation\Request; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Application\UseCases\Recipes; | |
final class CreateRecipe | |
{ | |
public function __construct( | |
private string $id, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Application\UseCases\Recipes; | |
use Domain\Model\Recipes\Recipe; | |
use Domain\Model\Recipes\Recipe\ValueObject\Ingredients; | |
use Domain\Model\Recipes\Recipe\ValueObject\Name; | |
use Domain\Model\Recipes\Recipe\ValueObject\RecipeId; |