develop #54
|
@ -1,4 +1,9 @@
|
|||
# Changelog
|
||||
## [0.22.4] - 2025-09-05
|
||||
### Fixed
|
||||
- Se ha corregido un typo en los ficheros de la carpeta "State/Processor"
|
||||
|
||||
---
|
||||
## [0.22.3] - 2025-09-04
|
||||
### Fixed
|
||||
- Se han corregido bugs en el deploy, relacionado con las tareas programadas.
|
||||
|
|
|
@ -13,9 +13,6 @@ use App\Controller\OgBoot\PxeBootFile\DeleteAction;
|
|||
use App\Controller\OgDhcp\Subnet\DeleteHostAction;
|
||||
use App\Dto\Input\ClientInput;
|
||||
use App\Dto\Output\ClientOutput;
|
||||
use App\Dto\Output\UserGroupOutput;
|
||||
use App\Entity\OgLive;
|
||||
use App\Entity\PxeTemplate;
|
||||
use App\Repository\ClientRepository;
|
||||
use App\Repository\MenuRepository;
|
||||
use App\Repository\OgLiveRepository;
|
||||
|
@ -44,7 +41,7 @@ readonly class ClientProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): ClientOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -12,7 +12,6 @@ use ApiPlatform\Validator\ValidatorInterface;
|
|||
use App\Dto\Input\CommandGroupInput;
|
||||
use App\Dto\Output\CommandGroupOutput;
|
||||
use App\Repository\CommandGroupRepository;
|
||||
use App\Repository\CommandRepository;
|
||||
|
||||
readonly class CommandGroupProcessor implements ProcessorInterface
|
||||
{
|
||||
|
@ -26,7 +25,7 @@ readonly class CommandGroupProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): CommandGroupOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -25,7 +25,7 @@ readonly class CommandProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): CommandOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -26,7 +26,7 @@ readonly class CommandTaskProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): CommandTaskOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -27,7 +27,7 @@ readonly class CommandTaskScheduleProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): CommandTaskScheduleOutput |null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -12,7 +12,6 @@ use ApiPlatform\Validator\ValidatorInterface;
|
|||
use App\Dto\Input\CommandTaskScriptInput;
|
||||
use App\Dto\Output\CommandTaskScriptOutput;
|
||||
use App\Repository\CommandTaskScriptRepository;
|
||||
use App\Service\CreateTraceService;
|
||||
|
||||
readonly class CommandTaskScriptProcessor implements ProcessorInterface
|
||||
{
|
||||
|
@ -27,7 +26,7 @@ readonly class CommandTaskScriptProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): CommandTaskScriptOutput |null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -31,7 +31,7 @@ readonly class GitRepositoryProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): GitRepositoryOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -9,7 +9,6 @@ use ApiPlatform\Metadata\Post;
|
|||
use ApiPlatform\Metadata\Put;
|
||||
use ApiPlatform\State\ProcessorInterface;
|
||||
use ApiPlatform\Validator\ValidatorInterface;
|
||||
use App\Dto\Input\ClientInput;
|
||||
use App\Dto\Input\HardwareInput;
|
||||
use App\Dto\Output\HardwareOutput;
|
||||
use App\Repository\HardwareRepository;
|
||||
|
@ -26,7 +25,7 @@ class HardwareProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): HardwareOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -26,7 +26,7 @@ readonly class HardwareProfileProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): HardwareProfileOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -10,17 +10,8 @@ use ApiPlatform\Metadata\Put;
|
|||
use ApiPlatform\State\ProcessorInterface;
|
||||
use ApiPlatform\Validator\ValidatorInterface;
|
||||
use App\Dto\Input\HardwareTypeInput;
|
||||
use App\Dto\Input\MenuInput;
|
||||
use App\Dto\Input\OperativeSystemInput;
|
||||
use App\Dto\Input\UserGroupInput;
|
||||
use App\Dto\Output\HardwareTypeOutput;
|
||||
use App\Dto\Output\MenuOutput;
|
||||
use App\Dto\Output\OperativeSystemOutput;
|
||||
use App\Dto\Output\UserGroupOutput;
|
||||
use App\Repository\HardwareTypeRepository;
|
||||
use App\Repository\MenuRepository;
|
||||
use App\Repository\OperativeSystemRepository;
|
||||
use App\Repository\UserGroupRepository;
|
||||
|
||||
readonly class HardwareTypeProcessor implements ProcessorInterface
|
||||
{
|
||||
|
@ -34,7 +25,7 @@ readonly class HardwareTypeProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): HardwareTypeOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
@ -49,10 +40,10 @@ readonly class HardwareTypeProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
private function processCreateOrUpdate($data, Operation $operation, array $uriVariables = [], array $context = []): HardwareTypeOutput
|
||||
private function processCreateOrUpdate($data, Operation $operation, array $uriVariables = [], array $context = []): HardwareTypeOutput|null
|
||||
{
|
||||
if (!($data instanceof HardwareTypeInput)) {
|
||||
throw new \Exception(sprintf('data is not instance of %s', MenuInput::class));
|
||||
throw new \Exception(sprintf('data is not instance of %s', HardwareTypeInput::class));
|
||||
}
|
||||
|
||||
$entity = null;
|
||||
|
|
|
@ -27,7 +27,7 @@ readonly class ImageImageRepositoryProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): ImageImageRepositoryOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -10,14 +10,8 @@ use ApiPlatform\Metadata\Put;
|
|||
use ApiPlatform\State\ProcessorInterface;
|
||||
use ApiPlatform\Validator\ValidatorInterface;
|
||||
use App\Controller\OgAgent\CreateImageAction;
|
||||
use App\Controller\OgRepository\Image\RenameAction;
|
||||
use App\Controller\OgRepository\Image\TransferAction;
|
||||
use App\Dto\Input\ImageInput;
|
||||
use App\Dto\Input\ImageRepositoryInput;
|
||||
use App\Dto\Output\ImageOutput;
|
||||
use App\Entity\ImageImageRepository;
|
||||
use App\Repository\ImageRepository;
|
||||
use App\Repository\ImageRepositoryRepository as ImageRepositoryRepository;
|
||||
use Symfony\Component\HttpKernel\KernelInterface;
|
||||
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
|
@ -40,7 +34,7 @@ readonly class ImageProcessor implements ProcessorInterface
|
|||
* @throws \Exception
|
||||
* @throws TransportExceptionInterface
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): ImageOutput|null|JsonResponse
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -25,7 +25,7 @@ readonly class ImageRepositoryProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): ImageRepositoryOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -10,11 +10,8 @@ use ApiPlatform\Metadata\Put;
|
|||
use ApiPlatform\State\ProcessorInterface;
|
||||
use ApiPlatform\Validator\ValidatorInterface;
|
||||
use App\Dto\Input\MenuInput;
|
||||
use App\Dto\Input\UserGroupInput;
|
||||
use App\Dto\Output\MenuOutput;
|
||||
use App\Dto\Output\UserGroupOutput;
|
||||
use App\Repository\MenuRepository;
|
||||
use App\Repository\UserGroupRepository;
|
||||
|
||||
readonly class MenuProcessor implements ProcessorInterface
|
||||
{
|
||||
|
@ -28,7 +25,7 @@ readonly class MenuProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): MenuOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -36,7 +36,7 @@ readonly class OgLiveProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): OgLiveOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -9,15 +9,9 @@ use ApiPlatform\Metadata\Post;
|
|||
use ApiPlatform\Metadata\Put;
|
||||
use ApiPlatform\State\ProcessorInterface;
|
||||
use ApiPlatform\Validator\ValidatorInterface;
|
||||
use App\Dto\Input\MenuInput;
|
||||
use App\Dto\Input\OperativeSystemInput;
|
||||
use App\Dto\Input\UserGroupInput;
|
||||
use App\Dto\Output\MenuOutput;
|
||||
use App\Dto\Output\OperativeSystemOutput;
|
||||
use App\Dto\Output\UserGroupOutput;
|
||||
use App\Repository\MenuRepository;
|
||||
use App\Repository\OperativeSystemRepository;
|
||||
use App\Repository\UserGroupRepository;
|
||||
|
||||
readonly class OperativeSystemProcessor implements ProcessorInterface
|
||||
{
|
||||
|
@ -31,7 +25,7 @@ readonly class OperativeSystemProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): OperativeSystemOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
@ -49,7 +43,7 @@ readonly class OperativeSystemProcessor implements ProcessorInterface
|
|||
private function processCreateOrUpdate($data, Operation $operation, array $uriVariables = [], array $context = []): OperativeSystemOutput
|
||||
{
|
||||
if (!($data instanceof OperativeSystemInput)) {
|
||||
throw new \Exception(sprintf('data is not instance of %s', MenuInput::class));
|
||||
throw new \Exception(sprintf('data is not instance of %s', OperativeSystemInput::class));
|
||||
}
|
||||
|
||||
$entity = null;
|
||||
|
|
|
@ -9,13 +9,10 @@ use ApiPlatform\Metadata\Post;
|
|||
use ApiPlatform\Metadata\Put;
|
||||
use ApiPlatform\State\ProcessorInterface;
|
||||
use ApiPlatform\Validator\ValidatorInterface;
|
||||
use App\Dto\Input\ChangeOrganizationalUnitInput;
|
||||
use App\Dto\Input\MenuInput;
|
||||
use App\Dto\Input\OrganizationalUnitInput;
|
||||
use App\Dto\Output\OrganizationalUnitOutput;
|
||||
use App\Repository\OrganizationalUnitRepository;
|
||||
use App\Service\ChangeClientNetworkSettingsService;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
readonly class OrganizationalUnitProcessor implements ProcessorInterface
|
||||
{
|
||||
|
@ -30,7 +27,7 @@ readonly class OrganizationalUnitProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): OrganizationalUnitOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -10,16 +10,8 @@ use ApiPlatform\Metadata\Put;
|
|||
use ApiPlatform\State\ProcessorInterface;
|
||||
use ApiPlatform\Validator\ValidatorInterface;
|
||||
use App\Controller\OgAgent\PartitionAssistantAction;
|
||||
use App\Dto\Input\MenuInput;
|
||||
use App\Dto\Input\PartitionInput;
|
||||
use App\Dto\Input\PartitionPostInput;
|
||||
use App\Dto\Input\UserGroupInput;
|
||||
use App\Dto\Output\MenuOutput;
|
||||
use App\Dto\Output\PartitionOutput;
|
||||
use App\Dto\Output\UserGroupOutput;
|
||||
use App\Repository\MenuRepository;
|
||||
use App\Repository\PartitionRepository;
|
||||
use App\Repository\UserGroupRepository;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
|
@ -36,7 +28,7 @@ readonly class PartitionProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): JsonResponse
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
@ -82,7 +74,7 @@ readonly class PartitionProcessor implements ProcessorInterface
|
|||
return new JsonResponse($jsonString, Response::HTTP_OK, [], true);
|
||||
}
|
||||
|
||||
return new JsonResponse(data: ['/clients/' . $image->getClient()->getUuid() => ['headers' => []]], status: Response::HTTP_OK);
|
||||
return new JsonResponse(data: ['/clients/' . '' => ['headers' => []]], status: Response::HTTP_OK);
|
||||
}
|
||||
|
||||
private function processDelete($data, Operation $operation, array $uriVariables = [], array $context = []): null
|
||||
|
|
|
@ -28,7 +28,7 @@ readonly class PxeTemplateProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): PxeTemplateOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -25,7 +25,7 @@ readonly class RemoteCalendarProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): RemoteCalendarOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -25,7 +25,7 @@ readonly class RemoteCalendarRuleProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): RemoteCalendarRuleOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -25,7 +25,7 @@ readonly class SoftwareProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): SoftwareOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -25,7 +25,7 @@ readonly class SoftwareProfileProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): SoftwareProfileOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -30,7 +30,7 @@ readonly class SubnetProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): SubnetOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -25,7 +25,7 @@ class UserGroupProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): UserGroupOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -27,7 +27,7 @@ class UserProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): UserOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
|
@ -27,7 +27,7 @@ readonly class ViewProcessor implements ProcessorInterface
|
|||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): ViewOutput|null
|
||||
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
|
||||
{
|
||||
switch ($operation){
|
||||
case $operation instanceof Post:
|
||||
|
|
Loading…
Reference in New Issue