-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1 Based on lightweight vitexsoftware/ease-core
logBanner with accept suffix & prefix
- Loading branch information
Showing
4 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -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 | ||
* | ||
|