for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BenTools\Shh;
use Symfony\Component\DependencyInjection\EnvVarProcessorInterface;
final class ShhEnvVarProcessor implements EnvVarProcessorInterface
{
/**
* @var Shh
*/
private $shh;
* ShhEnvVarProcessor constructor.
*
* @param Shh $shh
public function __construct(Shh $shh)
$this->shh = $shh;
}
* @inheritDoc
public function getEnv($prefix, $name, \Closure $getEnv): mixed
$env = $getEnv($name);
return $this->shh->decrypt($env);
public static function getProvidedTypes(): array
return [
'shh' => 'string',
];