Issues (3641)

GlueStorefrontFallbackApiApplication.php (1 issue)

1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace Spryker\Glue\GlueApplication\ApiApplication;
9
10
use Spryker\Client\Session\SessionClient;
11
use Spryker\Glue\GlueApplication\ApiApplication\Type\RequestFlowAgnosticApiApplication;
12
use Spryker\Glue\GlueApplication\Session\Storage\MockArraySessionStorage;
13
use Spryker\Shared\Application\ApplicationInterface;
14
use Symfony\Component\HttpFoundation\Session\Session;
15
16
class GlueStorefrontFallbackApiApplication extends RequestFlowAgnosticApiApplication
17
{
18
    /**
19
     * @return \Spryker\Shared\Application\ApplicationInterface
20
     */
21
    public function boot(): ApplicationInterface
22
    {
23
        $this->setUpSession();
24
25
        return parent::boot();
26
    }
27
28
    /**
29
     * @return void
30
     */
31
    protected function setUpSession(): void
32
    {
33
        (new SessionClient())->setContainer(
34
            new Session(
35
                new MockArraySessionStorage(),
0 ignored issues
show
Deprecated Code introduced by
The class Spryker\Glue\GlueApplica...MockArraySessionStorage has been deprecated: Will be removed without replacement. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

35
                /** @scrutinizer ignore-deprecated */ new MockArraySessionStorage(),
Loading history...
36
            ),
37
        );
38
    }
39
}
40