for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Spiechu\SymfonyCommonsBundle\Event\ResponseSchemaCheck;
use Spiechu\SymfonyCommonsBundle\Utils\AssertUtils;
class Events
{
/**
* @Event("Spiechu\SymfonyCommonsBundle\Event\ResponseSchemaCheck\CheckResult")
*/
public const CHECK_RESULT = 'spiechu_symfony_commons.event.response_schema_check.check_result';
protected const CHECK_SCHEMA_EVENT_NAME_PATTERN = 'spiechu_symfony_commons.event.response_schema_check.check_schema_%s';
* @param string $format
*
* @return string
public static function getCheckSchemaEventNameFor(string $format): string
\assert(
AssertUtils::isNotEmpty($format),
'$format is empty'
);
return sprintf(static::CHECK_SCHEMA_EVENT_NAME_PATTERN, strtolower($format));
}