@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param LoggerInterface $logger |
30 | - * @param NameIDProviderInterface $nameIdProvider |
|
30 | + * @param NameIdProviderInterface $nameIdProvider |
|
31 | 31 | */ |
32 | 32 | public function __construct(LoggerInterface $logger, NameIdProviderInterface $nameIdProvider) |
33 | 33 | { |
@@ -65,11 +65,11 @@ discard block |
||
65 | 65 | $buildContainer->getPimple()->register(new \LightSaml\Bridge\Pimple\Container\Factory\SystemContainerProvider()); |
66 | 66 | |
67 | 67 | $pimple = $buildContainer->getPimple(); |
68 | - $pimple[\LightSaml\Bridge\Pimple\Container\SystemContainer::LOGGER] = function () { |
|
68 | + $pimple[\LightSaml\Bridge\Pimple\Container\SystemContainer::LOGGER] = function() { |
|
69 | 69 | return $this->buildLogger(); |
70 | 70 | |
71 | 71 | }; |
72 | - $pimple[\LightSaml\Bridge\Pimple\Container\SystemContainer::SESSION] = function () { |
|
72 | + $pimple[\LightSaml\Bridge\Pimple\Container\SystemContainer::SESSION] = function() { |
|
73 | 73 | return $this->buildSession(); |
74 | 74 | |
75 | 75 | }; |
@@ -83,10 +83,10 @@ discard block |
||
83 | 83 | $buildContainer->getPimple()->register(new \LightSaml\Bridge\Pimple\Container\Factory\PartyContainerProvider()); |
84 | 84 | |
85 | 85 | $pimple = $buildContainer->getPimple(); |
86 | - $pimple[\LightSaml\Bridge\Pimple\Container\PartyContainer::SP_ENTITY_DESCRIPTOR] = function () { |
|
86 | + $pimple[\LightSaml\Bridge\Pimple\Container\PartyContainer::SP_ENTITY_DESCRIPTOR] = function() { |
|
87 | 87 | return $this->buildSpEntityStore(); |
88 | 88 | }; |
89 | - $pimple[\LightSaml\Bridge\Pimple\Container\PartyContainer::TRUST_OPTIONS_STORE] = function () { |
|
89 | + $pimple[\LightSaml\Bridge\Pimple\Container\PartyContainer::TRUST_OPTIONS_STORE] = function() { |
|
90 | 90 | $trustOptions = new \LightSaml\Meta\TrustOptions\TrustOptions(); |
91 | 91 | |
92 | 92 | return new \LightSaml\Store\TrustOptions\FixedTrustOptionsStore($trustOptions); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | ); |
116 | 116 | |
117 | 117 | $pimple = $buildContainer->getPimple(); |
118 | - $pimple[\LightSaml\Bridge\Pimple\Container\ProviderContainer::ATTRIBUTE_VALUE_PROVIDER] = function () { |
|
118 | + $pimple[\LightSaml\Bridge\Pimple\Container\ProviderContainer::ATTRIBUTE_VALUE_PROVIDER] = function() { |
|
119 | 119 | return (new \LightSaml\Provider\Attribute\FixedAttributeValueProvider()) |
120 | 120 | ->add(new \LightSaml\Model\Assertion\Attribute( |
121 | 121 | \LightSaml\ClaimTypes::COMMON_NAME, |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | |
137 | 137 | }; |
138 | 138 | |
139 | - $pimple[\LightSaml\Bridge\Pimple\Container\ProviderContainer::SESSION_INFO_PROVIDER] = function () { |
|
139 | + $pimple[\LightSaml\Bridge\Pimple\Container\ProviderContainer::SESSION_INFO_PROVIDER] = function() { |
|
140 | 140 | return new \LightSaml\Provider\Session\FixedSessionInfoProvider( |
141 | 141 | time() - 600, |
142 | 142 | 'session-index', |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | ); |
145 | 145 | }; |
146 | 146 | |
147 | - $pimple[\LightSaml\Bridge\Pimple\Container\ProviderContainer::NAME_ID_PROVIDER] = function () use ($buildContainer) { |
|
147 | + $pimple[\LightSaml\Bridge\Pimple\Container\ProviderContainer::NAME_ID_PROVIDER] = function() use ($buildContainer) { |
|
148 | 148 | $nameId = new \LightSaml\Model\Assertion\NameID('[email protected]'); |
149 | 149 | $nameId |
150 | 150 | ->setFormat(\LightSaml\SamlConstants::NAME_ID_FORMAT_EMAIL) |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | // if library is in dev environement with its own vendor, include its autoload |
4 | -if (file_exists(__DIR__ . '/vendor')) { |
|
5 | - require_once __DIR__ . '/vendor/autoload.php'; |
|
4 | +if (file_exists(__DIR__.'/vendor')) { |
|
5 | + require_once __DIR__.'/vendor/autoload.php'; |
|
6 | 6 | } // if library is in vendor of another project, include the global autolaod |
7 | 7 | else { |
8 | - require_once __DIR__ . '/../../autoload.php'; |
|
8 | + require_once __DIR__.'/../../autoload.php'; |
|
9 | 9 | } |