• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tempestphp / tempest-framework / 14424434409

13 Apr 2025 12:08AM UTC coverage: 80.172% (-1.0%) from 81.217%
14424434409

Pull #1149

github

web-flow
Merge 3b7a05345 into 0c553d46c
Pull Request #1149: feat(storage): add storage component

198 of 432 new or added lines in 22 files covered. (45.83%)

11746 of 14651 relevant lines covered (80.17%)

104.57 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Tempest/Storage/src/Config/SFTPStorageConfig.php
1
<?php
2

3
namespace Tempest\Storage\Config;
4

5
use League\Flysystem\FilesystemAdapter;
6
use League\Flysystem\PhpseclibV3\SftpAdapter;
7
use League\Flysystem\PhpseclibV3\SftpConnectionProvider;
8

9
final class SFTPStorageConfig implements StorageConfig
10
{
11
    public string $adapter = SftpAdapter::class;
12

NEW
13
    public function __construct(
×
14
        public string $host,
15
        public string $root,
16
        public string $username,
17
        public string $password,
18
        public ?string $privateKey = null,
19
        public ?string $passphrase = null,
20
        public int $port = 22,
21
        public bool $useAgent = false,
22
        public int $timeoutInSeconds = 10,
23
        public int $maxTries = 3,
24
        public ?string $hostFingerprint = null,
25
        public bool $readonly = false,
NEW
26
    ) {}
×
27

NEW
28
    public function createAdapter(): FilesystemAdapter
×
29
    {
NEW
30
        return new SftpAdapter(
×
NEW
31
            connectionProvider: new SftpConnectionProvider(
×
NEW
32
                host: $this->host,
×
NEW
33
                username: $this->username,
×
NEW
34
                password: $this->password,
×
NEW
35
                privateKey: $this->privateKey,
×
NEW
36
                passphrase: $this->passphrase,
×
NEW
37
                port: $this->port,
×
NEW
38
                useAgent: false,
×
NEW
39
                timeout: $this->timeoutInSeconds,
×
NEW
40
                maxTries: $this->maxTries,
×
NEW
41
                hostFingerprint: $this->hostFingerprint,
×
NEW
42
            ),
×
NEW
43
            root: $this->root,
×
NEW
44
        );
×
45
    }
46
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc