for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Jerowork\RouteAttributeProvider\RouteLoader\Cache;
trait CreateCacheKeyTrait
{
private string $cacheKeyPrefix = 'route_attribute_provider.route_loader';
/**
* @param string[] $directories
*/
public function createCacheKey(array $directories) : string
return sprintf(
'%s.%s',
$this->cacheKeyPrefix,
sha1(implode('', $directories))
);
}