# Copyright 2014 SURFnet bv
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

services: ~

# Copyright 2014 SURFnet bv
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

services:
    surfnet_yubikey_api_client.verification_service:
        class: Surfnet\YubikeyApiClientBundle\Service\VerificationService
        arguments:
            - @surfnet_yubikey_api_client.library_verification_service
            - @logger

    surfnet_yubikey_api_client.library_verification_service:
        public: false
        class: Surfnet\YubikeyApiClient\Service\VerificationService
        arguments:
            - @surfnet_yubikey_api_client.guzzle
            - @surfnet_yubikey_api_client.nonce_generator
            - @surfnet_yubikey_api_client.signer
            - %surfnet_yubikey_api_client.client_id%

    surfnet_yubikey_api_client.guzzle:
        public: false
        class: GuzzleHttp\Client

    surfnet_yubikey_api_client.nonce_generator:
        public: false
        class: Surfnet\YubikeyApiClient\Crypto\Md5UniqidNonceGeneratorTest

    surfnet_yubikey_api_client.signer:
        public: false
        class: Surfnet\YubikeyApiClient\Crypto\Signer:
        arguments:
            - %surfnet_yubikey_api_client.client_secret%

Add verification service service definition.
Add verification service service definition.
