/home/vianto5/haciendasanpancho.mx/wp-content/plugins/wp-rocket/inc/Addon
Edit: /home/vianto5/haciendasanpancho.mx/wp-content/plugins/wp-rocket/inc/Addon/ServiceProvider.php (2203B)
getContainer()->get( 'options' );
// Sucuri Addon.
$this->getContainer()->share( 'sucuri_subscriber', 'WP_Rocket\Subscriber\Third_Party\Plugins\Security\Sucuri_Subscriber' )
->addArgument( $options )
->addTag( 'common_subscriber' );
// Cloudflare Addon.
$this->addon_cloudflare( $options );
}
/**
* Adds Cloudflare Addon into the Container when the addon is enabled.
*
* @since 3.5
*
* @param Options_Data $options Instance of options.
*/
protected function addon_cloudflare( Options_Data $options ) {
// If the addon is not enabled, delete the transient and bail out. Don't load the addon.
if ( ! (bool) $options->get( 'do_cloudflare', false ) ) {
delete_transient( 'rocket_cloudflare_is_api_keys_valid' );
return;
}
$this->provides[] = 'cloudflare_subscriber';
$this->getContainer()->add( 'cloudflare_api', 'WPMedia\Cloudflare\APIClient' )
->addArgument( rocket_get_constant( 'WP_ROCKET_VERSION' ) );
$this->getContainer()->add( 'cloudflare', 'WPMedia\Cloudflare\Cloudflare' )
->addArgument( $options )
->addArgument( $this->getContainer()->get( 'cloudflare_api' ) );
$this->getContainer()->share( 'cloudflare_subscriber', 'WPMedia\Cloudflare\Subscriber' )
->addArgument( $this->getContainer()->get( 'cloudflare' ) )
->addArgument( $options )
->addArgument( $this->getContainer()->get( 'options_api' ) )
->addTag( 'cloudflare_subscriber' );
}
}