Skip to content

Commit 8ee612d

Browse files
authored
Merge pull request #2 from leonnleite/fix/moip-namespace
namespace fix, update dep moip version
2 parents faaa7e3 + 3edf7e8 commit 8ee612d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Resources/config/moip.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
<parameters>
88
<parameter key="moip.class">Moip\Moip</parameter>
9-
<parameter key="moip.authentication.oauth.class">Moip\MoipOAuth</parameter>
10-
<parameter key="moip.authentication.basic.class">Moip\MoipBasicAuth</parameter>
9+
<parameter key="moip.authentication.oauth.class">Moip\Auth\OAuth</parameter>
10+
<parameter key="moip.authentication.basic.class">Moip\Auth\BasicAuth</parameter>
1111
</parameters>
1212

1313

Tests/DependencyInjection/MoipBundleTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testLoad($config)
2525
$moip = $container->get('moip');
2626
$moipAuth = $container->get('moip.authenticator');
2727
$this->assertInstanceOf('\Moip\Moip', $moip);
28-
$this->assertInstanceOf('\Moip\MoipBasicAuth', $moipAuth);
28+
$this->assertInstanceOf('\Moip\Auth\BasicAuth', $moipAuth);
2929
$this->assertEquals($moip->getEndpoint(), Moip::ENDPOINT_SANDBOX);
3030
}
3131

@@ -55,7 +55,7 @@ public function testLoadWithOAuthAuthenticator($config)
5555
$moipAuth = $container->get('moip.authenticator');
5656

5757
$this->assertInstanceOf('\Moip\Moip', $moip);
58-
$this->assertInstanceOf('\Moip\MoipOAuth', $moipAuth);
58+
$this->assertInstanceOf('\Moip\Auth\OAuth', $moipAuth);
5959
}
6060

6161
public function getOAuthConfig()

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"require":{
14-
"moip/moip-sdk-php": "^1.1",
14+
"moip/moip-sdk-php": "^2.1",
1515
"symfony/dependency-injection": "^2.7|^3.1",
1616
"symfony/http-kernel": "^2.7|^3.1",
1717
"symfony/config": "^2.7|^3.1"

0 commit comments

Comments
 (0)