for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Micro framework package.
*
* (c) Stanislau Komar <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Micro\Plugin\Http;
use Micro\Framework\Kernel\Configuration\PluginConfiguration;
use Micro\Plugin\Http\Configuration\HttpExceptionResponsePluginConfigurationInterface;
/**
* @author Stanislau Komar <[email protected]>
class HttpExceptionResponsePluginConfiguration extends PluginConfiguration implements HttpExceptionResponsePluginConfigurationInterface
{
public const CFG_DECORATED_WEIGHT = 'MICRO_HTTP_EXCEPTION_DECORATION_WEIGHT';
public const CFG_DECORATION_WEIGHT_DEFAULT = 100;
public function getDecoratedLevel(): int
return (int) $this->configuration->get(self::CFG_DECORATED_WEIGHT, self::CFG_DECORATION_WEIGHT_DEFAULT, false);
}