Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/App.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

namespace DeliciousBrains\SpinupWPComposerSite;
use function Env\env;

class App {

Expand Down Expand Up @@ -36,4 +37,4 @@ public static function __callStatic( $name, $arguments ) {
return $env === env( 'WP_ENV' );
}
}
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"php": ">=7.3",
"composer/installers": "^1.4",
"johnpbloch/wordpress": "5.*",
"oscarotero/env": "^1.1.0",
"oscarotero/env": "^2.1.0",
"vlucas/phpdotenv": "^5.3",
"wpackagist-plugin/limit-login-attempts-reloaded": "*",
"wpackagist-plugin/spinupwp": "*",
Expand Down
5 changes: 1 addition & 4 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@
*/

use \DeliciousBrains\SpinupWPComposerSite\App;
use function Env\env;

$root_dir = dirname( __DIR__ );
$webroot_dir = $root_dir . '/public';

/**
* Expose global env() function from oscarotero/env
*/
Env::init();

/**
* Use Dotenv to set required environment variables and load .env file in root
Expand Down
3 changes: 1 addition & 2 deletions config/environments/development.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('SCRIPT_DEBUG', true);

@ini_set( 'display_errors', E_ALL );

define( 'DISALLOW_FILE_MODS', false );
define( 'DISALLOW_FILE_MODS', false );