fix: DockerSecretsResolver - don't normalize absolute paths like /var/www/html/...
Some checks failed
Deploy Application / deploy (push) Has been cancelled

This commit is contained in:
2025-11-24 21:28:25 +01:00
parent 4eb7134853
commit 77abc65cd7
1327 changed files with 91915 additions and 9909 deletions

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace App\Framework\View\ValueObjects;
/**
* Helper functions for working with data attributes
*
* Provides convenience methods for converting data attribute enums to strings
* and working with both string and enum attribute names.
*/
final readonly class DataAttributeHelper
{
/**
* Convert attribute name to string
*
* Accepts both string and DataAttributeInterface for convenience.
* This allows methods to accept either format without requiring ->value() calls.
*
* @param string|DataAttributeInterface $attribute
* @return string
*/
public static function toString(string|DataAttributeInterface $attribute): string
{
return $attribute instanceof DataAttributeInterface
? $attribute->value()
: $attribute;
}
}