Поправил резолв

This commit is contained in:
Rinsvent 2022-04-02 16:43:55 +07:00
parent 44fbf2015a
commit 519139bd9a
5 changed files with 18 additions and 8 deletions

View File

@ -2,10 +2,10 @@
namespace Rinsvent\TransformerBundle\Service\Transformer\Request\Headers;
use Rinsvent\Transformer\Transformer\Meta;
use Rinsvent\TransformerBundle\Service\Transformer\Request\ServiceMeta;
#[\Attribute]
class Header extends Meta
class Header extends ServiceMeta
{
public function __construct(
public string $property,

View File

@ -2,10 +2,10 @@
namespace Rinsvent\TransformerBundle\Service\Transformer\Request\Headers;
use Rinsvent\Transformer\Transformer\Meta;
use Rinsvent\TransformerBundle\Service\Transformer\Request\ServiceMeta;
#[\Attribute]
class UserAgent extends Meta
class UserAgent extends ServiceMeta
{
}

View File

@ -2,10 +2,10 @@
namespace Rinsvent\TransformerBundle\Service\Transformer\Request\Server;
use Rinsvent\Transformer\Transformer\Meta;
use Rinsvent\TransformerBundle\Service\Transformer\Request\ServiceMeta;
#[\Attribute]
class Ip extends Meta
class Ip extends ServiceMeta
{
}

View File

@ -2,10 +2,10 @@
namespace Rinsvent\TransformerBundle\Service\Transformer\Request\Server;
use Rinsvent\Transformer\Transformer\Meta;
use Rinsvent\TransformerBundle\Service\Transformer\Request\ServiceMeta;
#[\Attribute]
class Server extends Meta
class Server extends ServiceMeta
{
public function __construct(
public string $property,

View File

@ -0,0 +1,10 @@
<?php
namespace Rinsvent\TransformerBundle\Service\Transformer\Request;
use Rinsvent\Transformer\Transformer\Meta;
abstract class ServiceMeta extends Meta
{
public const TYPE = 'service';
}