Skip to content

Commit

Permalink
#1 Based on lightweight vitexsoftware/ease-core
Browse files Browse the repository at this point in the history
logBanner with accept suffix & prefix
  • Loading branch information
Vitexus committed Mar 15, 2019
1 parent 0d6c6c5 commit 2f8f35f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
}
],
"require": {
"php": ">= 5.6",
"php": ">= 7.1",
"ext-curl": "*",
"vitexsoftware/ease-framework": "dev-master"
"vitexsoftware/ease-core": "dev-master"
},
"autoload": {
"psr-4": {
Expand All @@ -26,10 +26,9 @@
}
},
"require-dev": {
"phpunit/php-token-stream": "~1.2",
"phpunit/phpunit": "5.3.*",
"phpunit/phpunit": "*",
"phpunit/phpunit-skeleton-generator": "*",
"jakub-onderka/php-parallel-lint": "^0.9.2",
"jakub-onderka/php-console-highlighter": "^0.3.2"
"jakub-onderka/php-parallel-lint": "*",
"jakub-onderka/php-console-highlighter": "*"
}
}
2 changes: 1 addition & 1 deletion debian/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"require": {
"ext-curl": "*",
"deb/ease-framework": "*"
"deb/ease-core": "*"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Priority: optional
Homepage: https://github.com/Spoje-NET/ipex-b2b

Package: php-ipex-b2b
Depends: ${misc:Depends},php5-curl | php7.0-curl,ease-framework
Depends: ${misc:Depends},php7.1-curl | php7.2-curl | php7.3-curl ,ease-core
Suggests: composer,ipex-b2b-doc
Architecture: all
Section: web
Expand Down
17 changes: 16 additions & 1 deletion src/IPEXB2B/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* IPEXB2B - Client for Access to IPEX class.
*
* @author Vítězslav Dvořák <[email protected]>
* @copyright (C) 2017 Spoje.Net
* @copyright (C) 2017-2019 Spoje.Net
*/

namespace IPEXB2B;
Expand Down Expand Up @@ -277,6 +277,21 @@ public function __construct($init = null, $options = [])
}
}

/**
* Add Info about used user, server and libraries
*
* @param string $prefix banner prefix text
* @param string $suffix banner suffix text
*/
public function logBanner($prefix = null, $suffix = null)
{
parent::logBanner($prefix,
' IPEX '.str_replace('://', '://'.$this->user.'@',
$this->getApiUrl()).' IpexB2B v'.self::$libVersion.$suffix
);
}


/**
* SetUp Object to be ready for connect
*
Expand Down

0 comments on commit 2f8f35f

Please sign in to comment.