Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
oauth
Commits
74746f0c
Commit
74746f0c
authored
Jul 10, 2014
by
anavarre
Committed by
Juampy
Jul 10, 2014
Browse files
Issue #2216991 by anavarre, jennik: config.context.free service has been removed
parent
65afcb64
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Form/OAuthSettingsForm.php
View file @
74746f0c
...
@@ -9,7 +9,6 @@ namespace Drupal\oauth\Form;
...
@@ -9,7 +9,6 @@ namespace Drupal\oauth\Form;
use
Drupal\Core\Form\ConfigFormBase
;
use
Drupal\Core\Form\ConfigFormBase
;
use
Drupal\Core\Config\ConfigFactory
;
use
Drupal\Core\Config\ConfigFactory
;
use
Drupal\Core\Config\Context\ContextInterface
;
use
Drupal\Core\Path\AliasManagerInterface
;
use
Drupal\Core\Path\AliasManagerInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
...
@@ -21,8 +20,8 @@ class OAuthSettingsForm extends ConfigFormBase {
...
@@ -21,8 +20,8 @@ class OAuthSettingsForm extends ConfigFormBase {
/**
/**
* Constructs an OAuthSettingsForm object.
* Constructs an OAuthSettingsForm object.
*/
*/
public
function
__construct
(
ConfigFactory
$config_factory
,
ContextInterface
$context
){
public
function
__construct
(
ConfigFactory
$config_factory
){
parent
::
__construct
(
$config_factory
,
$context
);
parent
::
__construct
(
$config_factory
);
}
}
...
@@ -31,8 +30,7 @@ class OAuthSettingsForm extends ConfigFormBase {
...
@@ -31,8 +30,7 @@ class OAuthSettingsForm extends ConfigFormBase {
*/
*/
public
static
function
create
(
ContainerInterface
$container
){
public
static
function
create
(
ContainerInterface
$container
){
return
new
static
(
return
new
static
(
$container
->
get
(
'config.factory'
),
$container
->
get
(
'config.factory'
)
$container
->
get
(
'config.context.free'
)
);
);
}
}
...
@@ -77,7 +75,7 @@ class OAuthSettingsForm extends ConfigFormBase {
...
@@ -77,7 +75,7 @@ class OAuthSettingsForm extends ConfigFormBase {
parent
::
validateForm
(
$form
,
$form_state
);
parent
::
validateForm
(
$form
,
$form_state
);
if
(
!
intval
(
$form_state
[
'values'
][
'request_token_lifetime'
],
10
))
{
if
(
!
intval
(
$form_state
[
'values'
][
'request_token_lifetime'
],
10
))
{
form_
set
_e
rror
(
'oauth_request_token_lifetime'
,
t
(
'The request token lifetime must be a non-zero integer value.'
));
\
Drupal
::
formBuilder
()
->
set
E
rror
ByName
(
'oauth_request_token_lifetime'
,
$form_state
,
t
(
'The request token lifetime must be a non-zero integer value.'
));
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment