add namespace
This commit is contained in:
parent
2e882701af
commit
a484657381
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace D3\TaxRatesAdjustment\Model;
|
||||
namespace D3\TaxRatesAdjustment\Models;
|
||||
|
||||
class raiseTaxRate
|
||||
{
|
||||
|
@ -1,13 +1,13 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
$filePath = '../d3/taxratesadjustment/bootstrap.php';
|
||||
$filePath = '../bootstrap.php';
|
||||
$currentDirectory = __DIR__ . '/';
|
||||
$filePath = $currentDirectory . $filePath;
|
||||
|
||||
require($filePath);
|
||||
|
||||
$change = new raiseTaxRate();
|
||||
$change = new \D3\TaxRatesAdjustment\Models\raiseTaxRate();
|
||||
try {
|
||||
$change->run();
|
||||
} catch ( \Exception $e) {
|
||||
|
@ -1,13 +1,11 @@
|
||||
<?php
|
||||
|
||||
use OxidEsales\ComposerPlugin\Installer\Package\ShopPackageInstaller;
|
||||
|
||||
$bootstrapFileName = getenv('ESHOP_BOOTSTRAP_PATH');
|
||||
if (!empty($bootstrapFileName)) {
|
||||
$bootstrapFileName = realpath(trim(getenv('ESHOP_BOOTSTRAP_PATH')));
|
||||
} else {
|
||||
$count = 0;
|
||||
$bootstrapFileName = '../../'. ShopPackageInstaller::SHOP_SOURCE_DIRECTORY .'/bootstrap.php';
|
||||
$bootstrapFileName = '../../source/bootstrap.php';
|
||||
$currentDirectory = __DIR__ . '/';
|
||||
while ($count < 5) {
|
||||
$count++;
|
||||
|
@ -13,6 +13,11 @@
|
||||
"homepage": "http://www.d3data.de"
|
||||
}
|
||||
],
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"D3\\TaxRatesAdjustment\\": ""
|
||||
}
|
||||
},
|
||||
"bin": [
|
||||
"bin/reduceTaxRate",
|
||||
"bin/raiseTaxRate"
|
||||
|
Reference in New Issue
Block a user