src/AutoMapper/User/AutoMapperConfiguration.php
<?php
declare(strict_types = 1);
/**
* /src/AutoMapper/User/AutoMapperConfiguration.php
*
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
*/
namespace App\AutoMapper\User;
use App\AutoMapper\RestAutoMapperConfiguration;
use App\DTO\User\UserCreate;
use App\DTO\User\UserPatch;
use App\DTO\User\UserUpdate;
/**
* @package App\AutoMapper
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
*/
class AutoMapperConfiguration extends RestAutoMapperConfiguration
{
/**
* Classes to use specified request mapper.
*
* @var array<int, class-string>
*/
protected static array $requestMapperClasses = [
UserCreate::class,
UserUpdate::class,
UserPatch::class,
];
public function __construct(
RequestMapper $requestMapper,
) {
parent::__construct($requestMapper);
}
}