|
Server : LiteSpeed System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64 User : gazetufm ( 1431) PHP Version : 8.1.35 Disable Function : NONE Directory : /home2/gazetufm/www/wp/wp-content/plugins/wp-crontrol/src/Context/ | |
|
Path: //home2/gazetufm/www/wp/wp-content/plugins/wp-crontrol/src/Context/WordPressFeatureContext.php
Size: 646 B
Permissions: 0644
<?php
/**
* WordPress feature flag context implementation.
*
* @package wp-crontrol
*/
namespace Crontrol\Context;
use function Crontrol\php_cron_events_enabled;
use function Crontrol\url_cron_events_enabled;
/**
* FeatureContext implementation that checks WordPress constants and options.
*
* This is the production implementation that reads from the WordPress environment.
*/
class WordPressFeatureContext implements FeatureContext {
#[\Override]
public function php_crons_enabled(): bool {
return php_cron_events_enabled();
}
#[\Override]
public function url_crons_enabled(): bool {
return url_cron_events_enabled();
}
}