| 1 |
<?php |
| 2 |
/** |
| 3 |
* Bootstrap utilities for DecaLog. |
| 4 |
* |
| 5 |
* @package Features |
| 6 |
* @author Pierre Lannoy <https://pierre.lannoy.fr/>. |
| 7 |
* @since 2.4.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
namespace Decalog\Plugin\Feature; |
| 11 |
|
| 12 |
use Decalog\Plugin\Feature\DLogger; |
| 13 |
use Decalog\System\Option; |
| 14 |
use Decalog\Plugin\Feature\Log; |
| 15 |
|
| 16 |
/** |
| 17 |
* Bootstrap utilities for DecaLog. |
| 18 |
* |
| 19 |
* Defines methods and properties for bootstrap management. |
| 20 |
* |
| 21 |
* @package Features |
| 22 |
* @author Pierre Lannoy <https://pierre.lannoy.fr/>. |
| 23 |
* @since 2.4.0 |
| 24 |
*/ |
| 25 |
class BootstrapManager { |
| 26 |
|
| 27 |
/** |
| 28 |
* Get the line to add to wp-settings.php file. |
| 29 |
* |
| 30 |
* @return string The line to add. |
| 31 |
* @since 2.4.0 |
| 32 |
*/ |
| 33 |
public static function install_help() { |
| 34 |
$file = str_replace( ABSPATH, '', DECALOG_PLUGIN_DIR . 'assets/_decalog_bootstrap.php' ); |
| 35 |
return "if (file_exists(ABSPATH.'wp-content/plugins/decalog/assets/_decalog_bootstrap.php')){include ABSPATH.'" . $file . "';}"; |
| 36 |
} |
| 37 |
} |
| 38 |
|