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\HttpMiddlewarePluginConfigurationInterface;
/**
* @author Stanislau Komar <[email protected]>
class HttpMiddlewarePluginConfiguration extends PluginConfiguration implements HttpMiddlewarePluginConfigurationInterface
{
public const CFG_DECORATION_PRIORITY = 'HTTP_MIDDLEWARE_DECORATION_PRIORITY';
public const CFG_DECORATION_DEFAULT = 150;
public function getDecorationPriority(): int
return (int) $this->configuration->get(self::CFG_DECORATION_PRIORITY, self::CFG_DECORATION_DEFAULT, false);
}