[5.0] Allow Passing Wildcards To App::environment()

Makes use of `str_is()`, so we can specify patterns like `App::environment('production-*')`.
PR updated.