for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gacela\Framework\Config\PathNormalizer;
use function sprintf;
final class WithoutSuffixAbsolutePathStrategy implements AbsolutePathStrategyInterface
{
public function __construct(
private readonly string $appRootDir,
) {
}
public function generateAbsolutePath(string $relativePath): string
return sprintf(
'%s/%s',
rtrim($this->appRootDir, '/'),
ltrim($relativePath, '/'),
);