public static function findParameterInEnv($needle, $env)
    {
        if (isset($env['env']['url'][$needle])) {
            return $env['env']['url'][$needle];
        }

        if (isset($env['env']['pool'][$needle])) {
            return $env['env']['pool'][$needle];
        }

        if (isset($env['param'][$needle])) {
            return $env['param'][$needle];
        }

        return null;
    }
public static function findParameterInEnv($needle, $env)
    {
        if (isset($env['env']['url'][$needle])) {
            return $env['env']['url'][$needle];
        }

        if (isset($env['env']['pool'][$needle])) {
            return $env['env']['pool'][$needle];
        }

        if (isset($env['param'][$needle])) {
            return $env['param'][$needle];
        }

        return null;
    }
public static function findParameterInEnv ( $ needle , $ env ) { if ( isset ( $ env [ 'env' ] [ 'url' ] [ $ needle ] ) ) { return $ env [ 'env' ] [ 'url' ] [ $ needle ] ; } if ( isset ( $ env [ 'env' ] [ 'pool' ] [ $ needle ] ) ) { return $ env [ 'env' ] [ 'pool' ] [ $ needle ] ; } if ( isset ( $ env [ 'param' ] [ $ needle ] ) ) { return $ env [ 'param' ] [ $ needle ] ; } return null ; }
Parameters can exist in three different facets of Symphony; in the URL,
in the parameter pool or as an Symphony param. This function will attempt
to find a parameter in those three areas and return the value. If it is not found
null is returned

@param string $needle
The parameter name
@param array $env
The environment variables from the Frontend class which includes
any params set by Symphony or Events or by other Datasources
@return mixed
If the value is not found, null, otherwise a string or an array is returned
Parameters can exist in three different facets of Symphony ; in the URL in the parameter pool or as an Symphony param . This function will attempt to find a parameter in those three areas and return the value . If it is not found null is returned