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

tempestphp / tempest-framework / 14424384667

12 Apr 2025 11:48PM UTC coverage: 79.996% (-1.2%) from 81.217%
14424384667

Pull #1149

github

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

149 of 403 new or added lines in 22 files covered. (36.97%)

11697 of 14622 relevant lines covered (80.0%)

104.56 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 League\Flysystem\FilesystemAdapter;
7
use MicrosoftAzure\Storage\Blob\BlobRestProxy;
8

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

NEW
13
    public function __construct(
×
14
        /**
15
         * Connection string to the Azure Blob Storage account.
16
         */
17
        public string $dsn,
18

19
        /**
20
         * Name of the container to use.
21
         */
22
        public string $container,
23

24
        /**
25
         * Prefix to be used for all paths.
26
         */
27
        public string $prefix = '',
28

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

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