@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\JwtBundle package. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\JwtBundle package. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\JwtBundle package. |
4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\JwtBundle package. |
4 | 4 | * |
@@ -27,14 +27,14 @@ discard block |
||
27 | 27 | public function load(array $configs, ContainerBuilder $container) |
28 | 28 | { |
29 | 29 | $config = $this->processConfiguration(new Configuration(), $configs); |
30 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
30 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | 31 | $loader->load('services.yml'); |
32 | 32 | |
33 | 33 | $keys = []; |
34 | 34 | |
35 | 35 | foreach ($config['keys'] as $keyId => $keyConfig) { |
36 | 36 | $keyConfig['kid'] = $keyId; |
37 | - $keyDefinition = new Definition('jwt.keys.' . $keyId); |
|
37 | + $keyDefinition = new Definition('jwt.keys.'.$keyId); |
|
38 | 38 | $keyDefinition->setClass(JwtKey::class); |
39 | 39 | |
40 | 40 | if (isset($keyConfig['loader'])) { |
@@ -45,12 +45,12 @@ |
||
45 | 45 | ? ChildDefinition::class |
46 | 46 | : DefinitionDecorator::class; |
47 | 47 | |
48 | - $providerId = 'security.authentication.provider.jwt.' . $id; |
|
48 | + $providerId = 'security.authentication.provider.jwt.'.$id; |
|
49 | 49 | $container |
50 | 50 | ->setDefinition($providerId, new $childDefinitionClass('jwt.security.authentication.provider')) |
51 | 51 | ->replaceArgument(0, new Reference($userProvider)); |
52 | 52 | |
53 | - $listenerId = 'security.authentication.listener.jwt.' . $id; |
|
53 | + $listenerId = 'security.authentication.listener.jwt.'.$id; |
|
54 | 54 | $container->setDefinition($listenerId, new $childDefinitionClass('jwt.security.authentication.listener')); |
55 | 55 | |
56 | 56 | return [$providerId, $listenerId, $defaultEntryPoint]; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\JwtBundle package. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\JwtBundle package. |
4 | 4 | * |