Primo Committ
This commit is contained in:
10
vendor/spatie/db-dumper/src/Compressors/Compressor.php
vendored
Normal file
10
vendor/spatie/db-dumper/src/Compressors/Compressor.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Spatie\DbDumper\Compressors;
|
||||
|
||||
interface Compressor
|
||||
{
|
||||
public function useCommand(): string;
|
||||
|
||||
public function useExtension(): string;
|
||||
}
|
||||
16
vendor/spatie/db-dumper/src/Compressors/GzipCompressor.php
vendored
Normal file
16
vendor/spatie/db-dumper/src/Compressors/GzipCompressor.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Spatie\DbDumper\Compressors;
|
||||
|
||||
class GzipCompressor implements Compressor
|
||||
{
|
||||
public function useCommand(): string
|
||||
{
|
||||
return 'gzip';
|
||||
}
|
||||
|
||||
public function useExtension(): string
|
||||
{
|
||||
return 'gz';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user