Prooph\ServiceBus\Container\Plugin\Guard\RouteGuardFactory::__callStatic PHP Метод

__callStatic() публичный статический Метод

Configuration example: [ \Prooph\ServiceBus\Container\Plugin\Guard\RouteGuardFactory::class, 'exposeMessageName' ] ];
public static __callStatic ( string $name, array $arguments ) : RouteGuard
$name string
$arguments array
Результат Prooph\ServiceBus\Plugin\Guard\RouteGuard
    public static function __callStatic($name, array $arguments)
    {
        if (!isset($arguments[0]) || !$arguments[0] instanceof ContainerInterface) {
            throw new InvalidArgumentException(sprintf('The first argument must be of type %s', ContainerInterface::class));
        }
        return (new static(true))->__invoke($arguments[0]);
    }