mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 20:36:38 -04:00
Update Composer dependencies, clean up PHPStan config file, and remove Constants.php from Composer in favor of PHPStan configuration
This commit is contained in:
parent
c203de4c6b
commit
11e5770413
5 changed files with 22 additions and 24 deletions
|
@ -1,5 +1,4 @@
|
|||
<?
|
||||
// Auto-included by Composer in `composer.json` to satisfy PHPStan.
|
||||
use Safe\DateTimeImmutable;
|
||||
use function Safe\get_cfg_var;
|
||||
use function Safe\define;
|
||||
|
@ -15,7 +14,7 @@ const SITE_TZ = new DateTimeZone('America/Chicago');
|
|||
const SITE_STATUS_LIVE = 'live';
|
||||
const SITE_STATUS_DEV = 'dev';
|
||||
|
||||
define('SITE_STATUS', get_cfg_var('app.site_status') ?: SITE_STATUS_DEV); // Set in the PHP INI configuration for both CLI and FPM. Have to use `define()` and not `const` so we can use a function.
|
||||
define('SITE_STATUS', get_cfg_var('app.site_status')); // Set in the PHP INI configuration for both CLI and FPM. Have to use `define()` and not `const` so we can use a function.
|
||||
|
||||
// No trailing slash on any of the below constants.
|
||||
if(SITE_STATUS == SITE_STATUS_LIVE){
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?
|
||||
// Composer auto-loads the `lib/` directory in `composer.json`.
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
require_once('Constants.php');
|
||||
|
||||
use function Safe\error_log;
|
||||
use function Safe\mb_internal_encoding;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue