ContainerInteropDoctrine\AbstractFactory::__callStatic PHP Method

__callStatic() public static method

In case you want to use another config key than "orm_default", you can add the following factory to your config: [SpecificFactory::class, 'orm_other'], ];
public static __callStatic ( string $name, array $arguments ) : mixed
$name string
$arguments array
return mixed
    public static function __callStatic($name, array $arguments)
    {
        if (!array_key_exists(0, $arguments) || !$arguments[0] instanceof ContainerInterface) {
            throw new Exception\DomainException(sprintf('The first argument must be of type %s', ContainerInterface::class));
        }
        return (new static($name))->__invoke($arguments[0]);
    }