Advertisement
triemli

Untitled

Aug 28th, 2020
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Setting;
  4.  
  5. use Symfony\Component\DependencyInjection\EnvVarProcessorInterface;
  6.  
  7. class FirstCapitalEnvVarProcessor implements EnvVarProcessorInterface
  8. {
  9.     public function getEnv($prefix, $name, \Closure $getEnv)
  10.     {
  11.         $env = $getEnv($name);
  12.  
  13.         return ucfirst($env);
  14.     }
  15.  
  16.     public static function getProvidedTypes()
  17.     {
  18.         return [
  19.             'ucfirst' => 'string',
  20.         ];
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement