Skip to content

Commit a6d41c5

Browse files
Symfony5対応を行った。
1 parent 2972c8e commit a6d41c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class Configuration implements ConfigurationInterface
2222
*/
2323
public function getConfigTreeBuilder()
2424
{
25-
$treeBuilder = new TreeBuilder();
26-
$treeBuilder->root('phpmentors_composite_password_authentication');
25+
$treeBuilder = new TreeBuilder('phpmentors_composite_password_authentication');
26+
$treeBuilder->getRootNode();
2727

2828
return $treeBuilder;
2929
}

src/DependencyInjection/Security/Factory/FormLoginCompositePasswordFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ class FormLoginCompositePasswordFactory extends FormLoginFactory
2222
/**
2323
* {@inheritdoc}
2424
*/
25-
public function getKey()
25+
public function getKey(): string
2626
{
2727
return 'form-login-composite-password';
2828
}
2929

3030
/**
3131
* {@inheritdoc}
3232
*/
33-
protected function createAuthProvider(ContainerBuilder $container, $id, $config, $userProviderId)
33+
protected function createAuthProvider(ContainerBuilder $container, string $id, array $config, string $userProviderId): string
3434
{
3535
$provider = 'phpmentors_composite_password_authentication.composite_password_dao_authentication_provider.'.$id;
3636
$container

0 commit comments

Comments
 (0)