Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Setting;
- use Symfony\Component\DependencyInjection\EnvVarProcessorInterface;
- class FirstCapitalEnvVarProcessor implements EnvVarProcessorInterface
- {
- public function getEnv($prefix, $name, \Closure $getEnv)
- {
- $env = $getEnv($name);
- return ucfirst($env);
- }
- public static function getProvidedTypes()
- {
- return [
- 'ucfirst' => 'string',
- ];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement