We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given we have the following PHP Code:
#[Flow\Proxy(false)] final readonly class MyValueObject { public function __construct( public string $value, ) { } }
#[Flow\Proxy(false)] #[\Attribute(\Attribute::TARGET_METHOD)] final readonly class MyMethodAttribute { public function __construct( public MyValueObject $something, ) { } }
#[Flow\Proxy(false)] #[\Attribute(\Attribute::TARGET_PARAMETER)] final readonly class MyParameterAttribute { public function __construct( public MyEnum $somethingElse, ) { } }
class MyController { #[MyMethodAttribute(new MyValueObject('whatever'))] public function myAction( #[MyParameterAttribute(MyEnum::SOME_CASE)] MyCommand $command ): MyCommandResponse { } }
When I set a MethodPrivilege on that action, so that the myAction method is proxied, the resulting proxy method looks as follows:
/** * Autogenerated Proxy Method */ #[\...\MyMethodAttribute(\...\MyValueObject::__set_state(array( 'value' => 'whatever', ))] public function myAction(\...\MyCommand $command) : \...\MyCommandResponse { }
leading to two issues:
The proxy builder should leave the attributes as they are
code see above
- Flow: >=8.3.7 - PHP: 8.2
No response
The text was updated successfully, but these errors were encountered:
kitsunet
No branches or pull requests
Is there an existing issue for this?
Current Behavior
Given we have the following PHP Code:
When I set a MethodPrivilege on that action, so that the myAction method is proxied, the resulting proxy method looks as follows:
leading to two issues:
Expected Behavior
The proxy builder should leave the attributes as they are
Steps To Reproduce
code see above
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: