Skip to content

Commit

Permalink
Add a custom service to not depend on sensio/framework-extra-bundle a…
Browse files Browse the repository at this point in the history
…ny longer.
  • Loading branch information
drupol committed Jan 7, 2020
1 parent cd2035a commit 4fe5565
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions Resources/config/packages/cas_services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ services:
$serverRequest: '@cas.psrrequest'
$properties: '@cas.configuration'
$client: '@psr18.http_client'
$uriFactory: '@nyholm.psr7.psr17_factory'
$responseFactory: '@nyholm.psr7.psr17_factory'
$requestFactory: '@nyholm.psr7.psr17_factory'
$streamFactory: '@nyholm.psr7.psr17_factory'
$uriFactory: '@cas.psr17_factory'
$responseFactory: '@cas.psr17_factory'
$requestFactory: '@cas.psr17_factory'
$streamFactory: '@cas.psr17_factory'
$cache: '@cache.app'
$logger: '@logger'

cas.psr17_factory:
class: Nyholm\Psr7\Factory\Psr17Factory

drupol\psrcas\CasInterface: '@cas'

cas.configuration:
Expand All @@ -26,10 +29,10 @@ services:
cas.psrhttpfactory:
class: Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory
arguments:
$serverRequestFactory: '@nyholm.psr7.psr17_factory'
$streamFactory: '@nyholm.psr7.psr17_factory'
$uploadedFileFactory: '@nyholm.psr7.psr17_factory'
$responseFactory: '@nyholm.psr7.psr17_factory'
$serverRequestFactory: '@cas.psr17_factory'
$streamFactory: '@cas.psr17_factory'
$uploadedFileFactory: '@cas.psr17_factory'
$responseFactory: '@cas.psr17_factory'

cas.httpfoundationfactory:
class: Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory
Expand All @@ -41,8 +44,8 @@ services:
class: drupol\CasBundle\Security\CasGuardAuthenticator
arguments:
$cas: '@cas'
$uriFactory: '@nyholm.psr7.psr17_factory'
$serverRequestFactory: '@nyholm.psr7.psr17_factory'
$uriFactory: '@cas.psr17_factory'
$serverRequestFactory: '@cas.psr17_factory'

cas.request:
class: Symfony\Component\HttpFoundation\RequestStack
Expand Down

0 comments on commit 4fe5565

Please sign in to comment.