app
1 month ago
assets
1 month ago
bootstrap
1 month ago
config
1 month ago
vendor
1 month ago
helpers.php
1 month ago
really-simple-security-core.php
1 month ago
really-simple-security-core.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | if (!defined('ABSPATH')) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * Find the Jetpack packages autoloader. |
| 9 | * @see https://packagist.org/packages/automattic/jetpack-autoloader |
| 10 | */ |
| 11 | $autoloaderFilePath = __DIR__ . '/vendor/autoload_packages.php'; |
| 12 | if (file_exists($autoloaderFilePath) === false) { |
| 13 | error_log('Really Simple Security: Core could not be booted, run `composer install` first.'); |
| 14 | return; |
| 15 | } |
| 16 | |
| 17 | // When it exists we require the Jetpack packages autoloader. |
| 18 | require_once $autoloaderFilePath; |
| 19 | |
| 20 | // Prevent boot when the core Plugin file is missing. |
| 21 | if (class_exists(\ReallySimplePlugins\RSS\Core\Bootstrap\Plugin::class) === false) { |
| 22 | error_log('Really Simple Security: Core could not be booted, main `Plugin` class could not be found.'); |
| 23 | return; |
| 24 | } |
| 25 | |
| 26 | // Boot. |
| 27 | $corePlugin = new \ReallySimplePlugins\RSS\Core\Bootstrap\Plugin(); |
| 28 | $corePlugin->boot(); |
| 29 | |
| 30 | // Cleanup. |
| 31 | unset($corePlugin); |
| 32 |