first commit
This commit is contained in:
11
modules/inpostshipping/vendor/nesbot/carbon/bin/index.php
vendored
Normal file
11
modules/inpostshipping/vendor/nesbot/carbon/bin/index.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
34
modules/inpostshipping/vendor/nesbot/carbon/bin/upgrade-carbon
vendored
Normal file
34
modules/inpostshipping/vendor/nesbot/carbon/bin/upgrade-carbon
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
$dir = __DIR__.'/..';
|
||||
|
||||
if (!file_exists($dir.'/autoload.php')) {
|
||||
$dir = __DIR__.'/../vendor';
|
||||
}
|
||||
|
||||
if (!file_exists($dir.'/autoload.php')) {
|
||||
$dir = __DIR__.'/../../..';
|
||||
}
|
||||
|
||||
if (!file_exists($dir.'/autoload.php')) {
|
||||
echo 'Autoload not found.';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$composerInstalled = false;
|
||||
|
||||
if (!file_exists($dir.'/composer/composer')) {
|
||||
$composerInstalled = true;
|
||||
shell_exec('composer require --dev composer/composer');
|
||||
}
|
||||
|
||||
include $dir.'/autoload.php';
|
||||
|
||||
Carbon\Upgrade::upgrade();
|
||||
|
||||
if ($composerInstalled) {
|
||||
shell_exec('composer remove --dev composer/composer');
|
||||
}
|
||||
|
||||
exit(0);
|
||||
4
modules/inpostshipping/vendor/nesbot/carbon/bin/upgrade-carbon.bat
vendored
Normal file
4
modules/inpostshipping/vendor/nesbot/carbon/bin/upgrade-carbon.bat
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
@ECHO OFF
|
||||
setlocal DISABLEDELAYEDEXPANSION
|
||||
SET BIN_TARGET=%~dp0/upgrade-carbon
|
||||
php "%BIN_TARGET%" %*
|
||||
Reference in New Issue
Block a user