Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| Constants | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
12 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
12 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace NewfoldLabs\WP\Module\Staging; |
| 4 | |
| 5 | use NewfoldLabs\WP\ModuleLoader\Container; |
| 6 | |
| 7 | /** |
| 8 | * Manages all the constants for the staging module. |
| 9 | */ |
| 10 | class Constants { |
| 11 | /** |
| 12 | * Constructor for the Constants class. |
| 13 | * |
| 14 | * @param Container $container The module container. |
| 15 | */ |
| 16 | public function __construct( $container ) { |
| 17 | if ( ! defined( 'NFD_STAGING_BUILD_DIR' ) ) { |
| 18 | define( 'NFD_STAGING_BUILD_DIR', dirname( __DIR__, 1 ) . '/build' ); |
| 19 | } |
| 20 | |
| 21 | if ( ! defined( 'NFD_STAGING_BUILD_URL' ) ) { |
| 22 | define( 'NFD_STAGING_BUILD_URL', $container->plugin()->url . 'vendor/newfold-labs/wp-module-staging/build' ); |
| 23 | } |
| 24 | } |
| 25 | } |