forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drop support for php 7.4 (openemr#5740)
* drop support for php 7.4 * finish laminas console removal * merge fix * got import ccda working * fixes * one more command done (register) and 2 more left * fix * one more command done (zfc-module) and 1 more left * done * php syntax ci update Co-authored-by: stephen waite <[email protected]>
- Loading branch information
1 parent
8dd17c6
commit 0272c4e
Showing
26 changed files
with
939 additions
and
2,882 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/usr/bin/php | ||
<?php | ||
|
||
/** | ||
* bin/console | ||
* | ||
* @package OpenEMR | ||
* @link https://www.open-emr.org | ||
* @author Brady Miller <Brady Miller <[email protected]> | ||
* @copyright Copyright (c) 2022 Brady Miller <Brady Miller <[email protected]> | ||
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 | ||
*/ | ||
|
||
if (php_sapi_name() !== 'cli') { | ||
echo "Only php cli can execute a command\n"; | ||
die(); | ||
} | ||
|
||
$siteDefault = 'default'; | ||
foreach ($argv as $arg) { | ||
if (str_contains($arg, "--site=")) { | ||
$siteDefault = explode("=", $arg)[1]; | ||
} | ||
} | ||
$_GET['site'] = $siteDefault; | ||
|
||
$ignoreAuth = true; | ||
// Since from command line, set $sessionAllowWrite since need to set site_id session and no benefit to set to false | ||
$sessionAllowWrite = true; | ||
require_once __DIR__ . '/../interface/globals.php'; | ||
|
||
use OpenEMR\Common\Command\AclModify; | ||
use OpenEMR\Common\Command\CcdaNewpatientImport; | ||
use OpenEMR\Common\Command\CcdaNewpatient; | ||
use OpenEMR\Common\Command\CcdaImport; | ||
use OpenEMR\Common\Command\Register; | ||
use OpenEMR\Common\Command\ZfcModule; | ||
use Symfony\Component\Console\Application; | ||
|
||
$app = new Application(); | ||
$app->add(new AclModify()); | ||
$app->add(new CcdaNewpatientImport()); | ||
$app->add(new CcdaNewpatient()); | ||
$app->add(new CcdaImport()); | ||
$app->add(new Register()); | ||
$app->add(new ZfcModule()); | ||
$app->run(); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.