Поправил сигнатуру

master v0.0.12
Rinsvent 3 years ago
parent adf99b2f15
commit fd765b93f7
  1. 2
      src/Service/Transformer/Request/Headers/Header.php
  2. 7
      src/Service/Transformer/Request/Headers/UserAgent.php
  3. 2
      src/Service/Transformer/Request/Server/Server.php
  4. 7
      src/Service/Transformer/Request/ServiceMeta.php

@ -12,6 +12,6 @@ class Header extends ServiceMeta
public ?string $default = null,
public array $tags = ['request_headers']
) {
parent::__construct($default, $tags);
parent::__construct($tags);
}
}

@ -7,5 +7,10 @@ use Rinsvent\TransformerBundle\Service\Transformer\Request\ServiceMeta;
#[\Attribute]
class UserAgent extends ServiceMeta
{
public function __construct(
public ?string $default = null,
public array $tags = ['default']
) {
parent::__construct($tags);
}
}

@ -12,6 +12,6 @@ class Server extends ServiceMeta
public ?string $default = null,
public array $tags = ['request_server']
) {
parent::__construct($default, $tags);
parent::__construct($tags);
}
}

@ -7,11 +7,4 @@ use Rinsvent\Transformer\Transformer\Meta;
abstract class ServiceMeta extends Meta
{
public const TYPE = 'service';
public function __construct(
public ?string $default = null,
public array $tags = ['default']
) {
parent::__construct($tags);
}
}

Loading…
Cancel
Save