Skip to content

[feature] Allow to call via magic methods #39

@defaultpage

Description

@defaultpage

Hi! Are there any plans to support magic methods? I didn't find an answer in the docs.

Example:

class TransportFactory {
    public static function __callStatic(string $method, array $arguments): string {
        return $method;
    }
}

echo $invoker->call([TransportFactory::class, 'some.transport.example']);
// Output:
// some.transport.example

P.S.: Thank you for the development and support of the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions