Skip to content

Commit

Permalink
Update configuration, use decorators pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jun 9, 2020
1 parent e2d4651 commit 95b52db
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions Resources/config/packages/eulogin_cas_services.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
services:
eulogin.userprovider:
class: EcPhp\EuLoginBundle\Security\Core\User\EuLoginUserProvider
cas:

ecas.configuration:
class: EcPhp\Ecas\EcasProperties
decorates: 'cas.configuration'
arguments: ['@ecas.configuration.inner', '@request_stack']

ecas:
class: EcPhp\Ecas\Ecas
arguments:
$serverRequest: '@cas.psrrequest'
$properties: '@cas.configuration'
$client: '@psr18.http_client'
$uriFactory: '@cas.psr17_factory'
$responseFactory: '@cas.psr17_factory'
$requestFactory: '@cas.psr17_factory'
$streamFactory: '@cas.psr17_factory'
$cache: '@cache.app'
$logger: '@logger'
decorates: 'cas'
arguments: ['@ecas.inner', '@nyholm.psr7.psr17_factory']

0 comments on commit 95b52db

Please sign in to comment.