Decoded Output
Download<?php declare(strict_types=1);
/**
* This file is part of Swoft.
*
* @link https://swoft.org
* @document https://swoft.org/docs
* @contact [email protected]
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace App\Model\Logic;
use Swoft\Bean\Annotation\Mapping\Bean;
use Swoft\Bean\Annotation\Mapping\Inject;
use Swoft\Consul\Agent;
use Swoft\Consul\Catalog;
use Swoft\Consul\Exception\ClientException;
use Swoft\Consul\Exception\ServerException;
use Swoft\Consul\Health;
use Swoft\Consul\KV;
use Swoft\Consul\Session;
/**
* Class ConsulLogic
*
* @since 2.0
*
* @Bean()
*/
class ConsulLogic
{
/**
* @Inject()
*
* @var Agent
*/
private $agent;
/**
* @Inject()
*
* @var Health
*/
private $health;
/**
* @Inject()
*
* @var Catalog
*/
private $catalog;
/**
* @Inject()
*
* @var KV
*/
private $kv;
/**
* @Inject()
*
* @var Session
*/
private $session;
/**
* @throws ClientException
* @throws ServerException
*/
public function kv(): void
{
$value = 'value content';
$this->kv->put('/test/my/key', $value);
$response = $this->kv->get('/test/my/key');
var_dump($response->getBody(), $response->getResult());
}
}
?>
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
None
Variables
None
Stats
| MD5 | ad0c8c4ae5b45d64 |
|---|---|
| Eval Count | 0 |
| Decode Time | 117 ms |
Original Code
<?php declare(strict_types=1);
/**
* This file is part of Swoft.
*
* @link https://swoft.org
* @document https://swoft.org/docs
* @contact [email protected]
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace App\Model\Logic;
use Swoft\Bean\Annotation\Mapping\Bean;
use Swoft\Bean\Annotation\Mapping\Inject;
use Swoft\Consul\Agent;
use Swoft\Consul\Catalog;
use Swoft\Consul\Exception\ClientException;
use Swoft\Consul\Exception\ServerException;
use Swoft\Consul\Health;
use Swoft\Consul\KV;
use Swoft\Consul\Session;
/**
* Class ConsulLogic
*
* @since 2.0
*
* @Bean()
*/
class ConsulLogic
{
/**
* @Inject()
*
* @var Agent
*/
private $agent;
/**
* @Inject()
*
* @var Health
*/
private $health;
/**
* @Inject()
*
* @var Catalog
*/
private $catalog;
/**
* @Inject()
*
* @var KV
*/
private $kv;
/**
* @Inject()
*
* @var Session
*/
private $session;
/**
* @throws ClientException
* @throws ServerException
*/
public function kv(): void
{
$value = 'value content';
$this->kv->put('/test/my/key', $value);
$response = $this->kv->get('/test/my/key');
var_dump($response->getBody(), $response->getResult());
}
}