• 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/ZipArchiveStorageConfig.php
1
<?php
2

3
namespace Tempest\Storage\Config;
4

5
use League\Flysystem\FilesystemAdapter;
6
use League\Flysystem\Local\LocalFilesystemAdapter;
7
use League\Flysystem\ZipArchive\FilesystemZipArchiveProvider;
8
use League\Flysystem\ZipArchive\ZipArchiveAdapter;
9

10
final class ZipArchiveStorageConfig implements StorageConfig
11
{
NEW
12
    public function __construct(
×
13
        /**
14
         * Absolute path to the zip file.
15
         */
16
        public string $path,
17

18
        /**
19
         * Prefix to be used for all paths in the zip archive.
20
         */
21
        public string $prefix = '',
22

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

NEW
29
    public function createAdapter(): ZipArchiveAdapter
×
30
    {
NEW
31
        return new ZipArchiveAdapter(
×
NEW
32
            zipArchiveProvider: new FilesystemZipArchiveProvider($this->path),
×
NEW
33
            root: $this->prefix,
×
NEW
34
        );
×
35
    }
36
}
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