File: /home/petsclubcc/creationsmi/wp-content/plugins/custom-php-settings/bootstrap.php
<?php
/**
* Plugin Name: Custom PHP settings
* Plugin URI: https://wordpress.org/plugins/custom-php-settings/
* Description: Customize PHP settings.
* Version: 2.0.0
* Requires at least: 3.1.0
* Requires PHP: 5.6
* Author: Cyclonecode
* Author URI: https://stackoverflow.com/users/1047662/cyclonecode?tab=profile
* Copyright: Cyclonecode
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: custom-php-settings
* Domain Path: /languages
*
* @package custom-php-settings
*/
namespace CustomPhpSettings;
require_once __DIR__ . '/vendor/autoload.php';
use CustomPhpSettings\Backend\Backend ;
use CustomPhpSettings\DI\ContainerBuilder ;
$builder = new ContainerBuilder();
$builder->addDefinitions( __DIR__ . '/config/config.php' );
if ( defined( 'CUSTOM_PHP_SETTINGS_COMPILE' ) ) {
$builder->enableCompilation( sys_get_temp_dir() );
}
function cps_get_container()
{
return $GLOBALS['cps_container'];
}
if ( !function_exists( 'cps_fs' ) ) {
// Create a helper function for easy SDK access.
function cps_fs()
{
if ( !isset( $cps_fs ) ) {
// Include Freemius SDK.
require_once dirname( __FILE__ ) . '/freemius/start.php';
$cps_fs = fs_dynamic_init( array(
'id' => '13735',
'slug' => 'custom-php-settings',
'premium_slug' => 'custom-php-settings-pro',
'type' => 'plugin',
'public_key' => 'pk_f39e0a5328f4297b51802fe17e93f',
'is_premium' => false,
'has_addons' => false,
'has_paid_plans' => true,
'menu' => array(
'slug' => 'custom-php-settings',
),
'is_live' => true,
) );
}
return $cps_fs;
}
// Init Freemius.
cps_fs();
// Signal that SDK was initiated.
do_action( 'cps_fs_loaded' );
}
$GLOBALS['cps_container'] = $builder->build();
add_action( 'plugins_loaded', function () {
if ( is_admin() ) {
cps_get_container()->get( Backend::class );
}
} );
register_activation_hook( __FILE__, array( 'CustomPhpSettings\\Backend\\Backend', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'CustomPhpSettings\\Backend\\Backend', 'deActivate' ) );
register_uninstall_hook( __FILE__, array( 'CustomPhpSettings\\Backend\\Backend', 'delete' ) );