mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°6934 - Symfony 6.4 - upgrade Symfony bundles to 6.4 (#580)
* Update Symfony lib to version ~6.4.0 * Update code missing return type * Add an iTop general configuration entry to store application secret (Symfony mandatory parameter) * Use dependency injection in ExceptionListener & UserProvider classes
This commit is contained in:
@@ -23,18 +23,17 @@ interface EnvVarProcessorInterface
|
||||
/**
|
||||
* Returns the value of the given variable as managed by the current instance.
|
||||
*
|
||||
* @param string $prefix The namespace of the variable
|
||||
* @param string $name The name of the variable within the namespace
|
||||
* @param \Closure $getEnv A closure that allows fetching more env vars
|
||||
*
|
||||
* @return mixed
|
||||
* @param string $prefix The namespace of the variable
|
||||
* @param string $prefix The namespace of the variable; when the empty string is passed, null values should be kept as is
|
||||
* @param string $name The name of the variable within the namespace
|
||||
* @param \Closure(string): mixed $getEnv A closure that allows fetching more env vars
|
||||
*
|
||||
* @throws RuntimeException on error
|
||||
*/
|
||||
public function getEnv(string $prefix, string $name, \Closure $getEnv);
|
||||
public function getEnv(string $prefix, string $name, \Closure $getEnv): mixed;
|
||||
|
||||
/**
|
||||
* @return string[] The PHP-types managed by getEnv(), keyed by prefixes
|
||||
* @return array<string, string> The PHP-types managed by getEnv(), keyed by prefixes
|
||||
*/
|
||||
public static function getProvidedTypes();
|
||||
public static function getProvidedTypes(): array;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user