Skip to content
New issue

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

Array config #29

Closed
fjqtp opened this issue Apr 5, 2017 · 2 comments
Closed

Array config #29

fjqtp opened this issue Apr 5, 2017 · 2 comments

Comments

@fjqtp
Copy link

fjqtp commented Apr 5, 2017

Hello,

in the latest version I'm not able to config request with array as I did previously:

$raterequest = new RateRequest([
            'WebAuthenticationDetail' => new WebAuthenticationDetail([
                'UserCredential'    => new WebAuthenticationCredential([
                    'Key'      => '***',
                    'Password' => '***',
                ])
            ]),
...
]);

new syntax expects I'll be doing something like this:

$userCredential
    ->setKey(FEDEX_KEY)
    ->setPassword(FEDEX_PASSWORD);

Can you please return ability to config with arrays or say me what I'm doing wrong now?

@JeremyDunn
Copy link
Owner

Sorry my latest release broke backward compatibility. Please use release 1.1
https://github.com/JeremyDunn/php-fedex-api-wrapper/releases/tag/1.1

@fjqtp
Copy link
Author

fjqtp commented Apr 6, 2017

Big thanks, works now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants