Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3338541
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3338541
Commits
298db7a0
Commit
298db7a0
authored
12 years ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1887046
by Sutharsan: Convert drupal_http_request() usage in install.core.inc to Guzzle.
parent
6d5c2113
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/includes/install.core.inc
+11
-0
11 additions, 0 deletions
core/includes/install.core.inc
with
11 additions
and
0 deletions
core/includes/install.core.inc
+
11
−
0
View file @
298db7a0
...
...
@@ -356,6 +356,17 @@ function install_begin_request(&$install_state) {
// Register a module handler for managing enabled modules.
$container
->
register
(
'module_handler'
,
'Drupal\Core\Extension\ModuleHandler'
);
// Register the Guzzle HTTP client for fetching translation files from a
// remote translation server such as localization.drupal.org.
$container
->
register
(
'http_default_client'
,
'Guzzle\Http\Client'
)
->
addArgument
(
NULL
)
->
addArgument
(
array
(
'curl.CURLOPT_TIMEOUT'
=>
30.0
,
'curl.CURLOPT_MAXREDIRS'
=>
3
,
))
->
addMethodCall
(
'setUserAgent'
,
array
(
'Drupal (+http://drupal.org/)'
));
drupal_container
(
$container
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment