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

tempestphp / tempest-framework / 14422860902

12 Apr 2025 07:52PM UTC coverage: 80.298% (-0.9%) from 81.217%
14422860902

Pull #1149

github

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

137 of 333 new or added lines in 18 files covered. (41.14%)

11685 of 14552 relevant lines covered (80.3%)

104.86 hits per line

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

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

3
namespace Tempest\Storage\Config;
4

5
use League\Flysystem\AzureBlobStorage\AzureBlobStorageAdapter;
6
use MicrosoftAzure\Storage\Blob\BlobRestProxy;
7

8
final class AzureStorageConfig implements StorageConfig
9
{
NEW
10
    public function __construct(
×
11
        /**
12
         * Connection string to the Azure Blob Storage account.
13
         */
14
        public string $dsn,
15

16
        /**
17
         * Name of the container to use.
18
         */
19
        public string $container,
20

21
        /**
22
         * Prefix to be used for all paths.
23
         */
24
        public string $prefix = '',
25

26
        /**
27
         * Whether the storage is read-only.
28
         */
29
        public bool $readonly = false,
NEW
30
    ) {}
×
31

NEW
32
    public function createAdapter(): AzureBlobStorageAdapter
×
33
    {
NEW
34
        return new AzureBlobStorageAdapter(
×
NEW
35
            client: BlobRestProxy::createBlobService($this->dsn),
×
NEW
36
            container: $this->container,
×
NEW
37
            prefix: $this->prefix,
×
NEW
38
        );
×
39
    }
40
}
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