Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
feat: adds a list of setup options
Browse files Browse the repository at this point in the history
  • Loading branch information
devuri committed Mar 10, 2021
1 parent 8a2f109 commit 9dea7b3
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion sample-wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,22 @@
* @package WordPress
*/
// To override setup constant defined in config() method define them before.
Setup::init(__DIR__)->config('development');

// list of setup options

// Setup::init(__DIR__)->config(); // development
//
// Setup::init(__DIR__)->config('development'); // development
//
// Setup::init(__DIR__)->config('staging'); // staging
//
// Setup::init(__DIR__)->config('production'); // production
//
// Setup::init(__DIR__)->config('secure'); // secure
//
// Setup::init(__DIR__)->config('development', false )->environment()->database()->salts()->apply();


// after setup we can define other constant in the normal way or using env function
// or simply use "Setup::get( 'UPLOAD_DIR' )"
// // Custom Uploads Directory.
Expand All @@ -45,6 +60,13 @@
// Setup::init(__DIR__)->config();
// this will setup in development mode.

// hardening and secure setup mode.
// secure setup mode:
// Setup::init(__DIR__)->config('secure');
// this helps to reduce the attack surface by
// disabling both file editor and installer for themes and plugins.


// use false to disable and bypass the default setup process and roll your own.
// Setup::init(__DIR__)->config( 'development', false )->environment()->database()->salts()->apply();

Expand Down

0 comments on commit 9dea7b3

Please sign in to comment.