Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Nov 7, 2019
1 parent e61e35d commit e3e00fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
class: drupol\EuloginBundle\Protocol\Eulogin
arguments:
$serverRequest: '@cas.psrrequest'
$properties: '%cas%'
$properties: '@cas.configuration'
$client: '@psr18.http_client'
$uriFactory: '@nyholm.psr7.psr17_factory'
$responseFactory: '@nyholm.psr7.psr17_factory'
Expand Down
5 changes: 3 additions & 2 deletions src/Protocol/Eulogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use drupol\psrcas\Cas;
use drupol\psrcas\CasInterface;
use drupol\psrcas\Configuration\PropertiesInterface;
use Psr\Cache\CacheItemPoolInterface;
use Psr\Http\Client\ClientInterface;
use Psr\Http\Message\RequestFactoryInterface;
Expand Down Expand Up @@ -46,7 +47,7 @@ final class Eulogin implements CasInterface
*/
public function __construct(
ServerRequestInterface $serverRequest,
array $properties,
PropertiesInterface $properties,
ClientInterface $client,
UriFactoryInterface $uriFactory,
ResponseFactoryInterface $responseFactory,
Expand Down Expand Up @@ -81,7 +82,7 @@ public function authenticate(): ?array
/**
* {@inheritdoc}
*/
public function getProperties(): array
public function getProperties(): PropertiesInterface
{
return $this->cas->getProperties();
}
Expand Down

0 comments on commit e3e00fb

Please sign in to comment.