• File: VulnerabilityLoader.php
  • Full Path: /home/docteuh/www/Vulnerability/VulnerabilityLoader.php
  • Date Modified: 06/18/2026 4:25 PM
  • File size: 719 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace ReallySimplePlugins\RSS\Core\Features\Vulnerability;

use ReallySimplePlugins\RSS\Core\Features\AbstractLoader;
use ReallySimplePlugins\RSS\Core\Managers\FeatureManager;
use ReallySimplePlugins\RSS\Core\Traits\HasAllowlistControl;

/**
 * Determines whether the Vulnerabilities feature should be loaded.
 *
 * @see FeatureManager
 */
class VulnerabilityLoader extends AbstractLoader
{
    use HasAllowlistControl;

    /**
     * @inheritDoc
     */
    public function isEnabled(): bool
    {
        return rsssl_get_option('enable_vulnerability_scanner', false);
    }

    /**
     * @inheritDoc
     */
    public function inScope(): bool
    {
        return $this->adminAccessAllowed();
    }
}