SsoIdpResponseErrorActionBuilder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 11

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 11
dl 0
loc 35
ccs 0
cts 27
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A doInitialize() 0 29 1
1
<?php
2
3
/*
4
 * This file is part of the LightSAML-IDP package.
5
 *
6
 * (c) Milos Tomic <[email protected]>
7
 *
8
 * This source file is subject to the GPL-3 license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace LightSaml\Idp\Builder\Action\Profile\SingleSignOn\Idp;
13
14
use LightSaml\Action\Profile\Inbound\Message\ResolvePartyEntityIdAction;
15
use LightSaml\Action\Profile\Outbound\Message\CreateMessageIssuerAction;
16
use LightSaml\Action\Profile\Outbound\Message\ResolveEndpointSpAcsAction;
17
use LightSaml\Action\Profile\Outbound\Message\SendMessageAction;
18
use LightSaml\Idp\Action\Profile\Outbound\Response\CreateResponseAction;
19
use LightSaml\Idp\Action\Profile\Outbound\StatusResponse\SetStatusAction;
20
use LightSaml\Builder\Action\Profile\AbstractProfileActionBuilder;
21
use LightSaml\SamlConstants;
22
23
class SsoIdpResponseErrorActionBuilder extends AbstractProfileActionBuilder
24
{
25
    /**
26
     * @return void
27
     */
28
    protected function doInitialize()
29
    {
30
        $this->add(new ResolvePartyEntityIdAction(
31
            $this->buildContainer->getSystemContainer()->getLogger(),
32
            $this->buildContainer->getPartyContainer()->getSpEntityDescriptorStore(),
33
            $this->buildContainer->getPartyContainer()->getIdpEntityDescriptorStore(),
34
            $this->buildContainer->getPartyContainer()->getTrustOptionsStore()
35
        ), 100);
36
        $this->add(new CreateResponseAction(
37
            $this->buildContainer->getSystemContainer()->getLogger()
38
        ));
39
        $this->add(new CreateMessageIssuerAction(
40
            $this->buildContainer->getSystemContainer()->getLogger()
41
        ));
42
        $this->add(new SetStatusAction(
43
            $this->buildContainer->getSystemContainer()->getLogger(),
44
            SamlConstants::STATUS_REQUESTER
45
        ));
46
        $this->add(new ResolveEndpointSpAcsAction(
47
            $this->buildContainer->getSystemContainer()->getLogger(),
48
            $this->buildContainer->getServiceContainer()->getEndpointResolver()
49
        ));
50
51
        // Send
52
        $this->add(new SendMessageAction(
53
            $this->buildContainer->getSystemContainer()->getLogger(),
54
            $this->buildContainer->getServiceContainer()->getBindingFactory()
55
        ), 400);
56
    }
57
}
58