- Refactor Bo\ProductsController to use ActionExecutor and Queries - Refactor Fo\Pages\ProductsController and Fo\Ajax\ProductsController to CQS - Add Actions: CreateProduct, UpdateProduct, DeleteProduct with Inputs - Add Queries: GetBoPaginatedProductsQuery, GetProductFormDataQuery, GetFoProductIndexPageQuery, GetFoFilteredProductsQuery - Add DTOs: ProductFormDataDto and enrich ProductDto - Encapsulate Action/Query inputs conversion in FormRequests - Remove obsolete ProductDirectory and EloquentProductDirectory - Add tests for Fo\Ajax\ProductsController
16 lines
269 B
PHP
16 lines
269 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Actions\Products;
|
|
|
|
use App\Contracts\ActionInput;
|
|
use App\Models\Product;
|
|
|
|
final readonly class DeleteProductInput implements ActionInput
|
|
{
|
|
public function __construct(
|
|
public Product $product,
|
|
) {
|
|
}
|
|
}
|