Skip to content

Commit

Permalink
Released version 1.1.0 (stable hostbox/api-payu 1.0.*)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmachan committed Jul 25, 2015
1 parent ccff67f commit a815236
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions README.md
Expand Up @@ -7,7 +7,6 @@ Package Installation
The best way to install Social Plugins is using [Composer](http://getcomposer.org/):

```sh
$ composer require hostbox/api-payu @dev
$ composer require hostbox/api-payu-nette-bridge
```

Expand All @@ -19,8 +18,7 @@ or manual edit composer.json in your project

```json
"require": {
"hostbox/api-payu": "@dev",
"hostbox/api-payu-nette-bridge": "~1.0.0"
"hostbox/api-payu-nette-bridge": "~1.1.0"
}
```

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -16,7 +16,7 @@
},
"require": {
"nette/di": "~2.2",
"hostbox/api-payu": "dev-master#8928f5cfcd6ce0830b964dc7ae79f26d02320517"
"hostbox/api-payu": "~1.0.0"
},
"require-dev": {
"nette/tester": "~1.0",
Expand Down
6 changes: 3 additions & 3 deletions src/HostBox/Bridge/PayU/Extension.php
Expand Up @@ -2,7 +2,7 @@

namespace HostBox\Bridge\PayU;

use HostBox\Api\PayU\IConfig;
use HostBox\Api\PayU\Config;
use Nette\DI\CompilerExtension;
use Nette\InvalidArgumentException;

Expand All @@ -15,8 +15,8 @@ public function loadConfiguration()
{
$optionKeys = array('posId', 'posAuthKey', 'key1', 'key2', 'encoding', 'format');
$defaultOptions = array(
'encoding' => IConfig::ENCODING_UTF_8,
'format' => IConfig::FORMAT_XML
'encoding' => Config::ENCODING_UTF_8,
'format' => Config::FORMAT_XML
);

$container = $this->getContainerBuilder();
Expand Down
4 changes: 2 additions & 2 deletions tests/HostBoxTests/Bridge/PayU/Extension.phpt
Expand Up @@ -37,7 +37,7 @@ class ExtensionTest extends TestCase
Assert::true(($config = $dic->getService('single.default.config')) instanceof PayU\Config);
Assert::true($dic->getService('single.default.connection') instanceof PayU\Connection);
Assert::true($dic->getService('single.default') instanceof PayU\PayU);
/** @var PayU\IConfig $config */
/** @var PayU\Config $config */
Assert::same('txt', $config->getFormat());
}

Expand All @@ -49,7 +49,7 @@ class ExtensionTest extends TestCase
Assert::true(($config = $dic->getService('multi.second.config')) instanceof PayU\Config);
Assert::true($dic->getService('multi.second.connection') instanceof PayU\Connection);
Assert::true($dic->getService('multi.second') instanceof PayU\PayU);
/** @var PayU\IConfig $config */
/** @var PayU\Config $config */
Assert::same('ISO', $config->getEncoding());
}

Expand Down

0 comments on commit a815236

Please sign in to comment.