change namespace to Webapp\
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\webapp\Printer;
|
||||
namespace Webapp\Printer;
|
||||
|
||||
use \flight\Session;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\webapp\Printer;
|
||||
namespace Webapp\Printer;
|
||||
|
||||
use \flight\Engine;
|
||||
use \flight\Session;
|
||||
@@ -37,7 +37,7 @@ class PrintPOS {
|
||||
|
||||
public function __construct(Engine $app, Session $session) {
|
||||
$this->app = $app;
|
||||
$this->webapp = $session->get('__WEB_APP', ['APP_NAME'=>'', 'APP_VER'=>'', 'REAL_PATH'=>'']);
|
||||
$this->webapp = $session->get('__WEB_APP', ['APP_NAME'=>'', 'APP_VER'=>'']);
|
||||
$this->webuser = $session->get('__WEB_USER', ['UserID'=>0, 'Username'=>'']);
|
||||
}
|
||||
|
||||
@@ -58,8 +58,8 @@ class PrintPOS {
|
||||
}
|
||||
|
||||
public function set_header_logo(string $logo_file = ""): void {
|
||||
if (!empty($logo_file) && file_exists($this->webapp['REAL_PATH']."assets/images/".$logo_file)) {
|
||||
$this->_config['logo'] = $this->webapp['WEB_PATH']."assets/images/".$logo_file;
|
||||
if (!empty($logo_file) && file_exists(PROJECT_ROOT."assets/images/".$logo_file)) {
|
||||
$this->_config['logo'] = PROJECT_BASE."assets/images/".$logo_file;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\webapp\Printer;
|
||||
namespace Webapp\Printer;
|
||||
|
||||
use \flight\Engine;
|
||||
use \flight\Session;
|
||||
@@ -32,13 +32,13 @@ class PrintRAW {
|
||||
'opendraw' => false,
|
||||
'cutpaper' => false,
|
||||
];
|
||||
private array $webapp;
|
||||
private array $webuser;
|
||||
protected Engine $app;
|
||||
protected array $webapp;
|
||||
protected array $webuser;
|
||||
|
||||
public function __construct(Engine $app, Session $session) {
|
||||
$this->app = $app;
|
||||
$this->webapp = $session->get('__WEB_APP', ['APP_NAME'=>'', 'APP_VER'=>'', 'REAL_PATH'=>'']);
|
||||
$this->webapp = $session->get('__WEB_APP', ['APP_NAME'=>'', 'APP_VER'=>'']);
|
||||
$this->webuser = $session->get('__WEB_USER', ['UserID'=>0, 'Username'=>'']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user