Skip to content

Commit ccb2f7a

Browse files
committed
Extract core and put as dependency
1 parent 3189050 commit ccb2f7a

File tree

13 files changed

+5
-587
lines changed

13 files changed

+5
-587
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ O SDK oficial é lindo, mas é difícil de editar os arquivos, quem não manja d
4646
- Baixe o repositório como [arquivo zip] ou faça um clone;
4747
- Descompacte os arquivos em seu computador;
4848
- Renomei a pasta `vendor_alt` para `vendor`
49+
- Baixe o *[projeto core](https://github.com/sounoob/pagseguro-php-sdk-core)* e copie o conteúdo da pasta source para dentro da nossa pasta source.
4950

5051
Como usar
5152
---------

composer.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@
77
}
88
],
99
"require" : {
10-
"php" : ">=5.3.3",
11-
"ext-curl": "*",
12-
"lib-curl": "*",
13-
"lib-openssl": "*",
14-
"ext-json": "*",
15-
"ext-simplexml": "*"
10+
"sounoob/pagseguro-php-sdk-core" : "*"
1611
},
1712
"require-dev" : {
1813
"phpunit/phpunit" : "4.8.*"
@@ -33,4 +28,4 @@
3328
"issues": "https://github.com/sounoob/pagseguro-php-sdk/issues",
3429
"source": "https://github.com/sounoob/pagseguro-php-sdk"
3530
}
36-
}
31+
}

source/Boleto.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Sounoob\pagseguro;
44

5+
use Sounoob\pagseguro\config\Config;
56
use Sounoob\pagseguro\core\PagSeguro;
67
use Sounoob\pagseguro\core\Utils;
78

@@ -305,7 +306,7 @@ protected function defaultValues()
305306
public function send()
306307
{
307308
if (Config::isSandbox()) {
308-
throw new Exception('API is not available in sandbox environment');
309+
throw new \Exception('API is not available in sandbox environment');
309310
}
310311
$this->url = 'recurring-payment/boletos';
311312
$this->curl->setContentType('application/json;charset=UTF-8');

source/config/Config.php

Lines changed: 0 additions & 81 deletions
This file was deleted.

source/config/Discover.php

Lines changed: 0 additions & 42 deletions
This file was deleted.

source/config/Url.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)