for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Spiral Framework.
*
* @license MIT
* @author Pavel Z
*/
declare(strict_types=1);
namespace Spiral\Config;
use Spiral\Core\InjectableConfig;
class JsonPayloadConfig extends InjectableConfig
{
public const CONFIG = 'json-payload';
/** @var array */
protected $config = [
'contentTypes' => [
'application/json'
]
];
* @return mixed
public function getContentTypes(): array
return $this->config['contentTypes'];
}