Replaced env() with Request::env() in AssetDispatcher filter.