Skip to content

Commit bf6cbd5

Browse files
author
github-actions
committed
Merge pull request #306 from hydephp/remove-deprecated-internal-trait
Delete internal deprecated trait TransfersMediaAssetsForBuildCommands.php hydephp/develop@7997b24
1 parent 86ff59d commit bf6cbd5

File tree

2 files changed

+4
-45
lines changed

2 files changed

+4
-45
lines changed

src/Commands/HydeRebuildStaticSiteCommand.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
namespace Hyde\Framework\Commands;
44

55
use Exception;
6-
use Hyde\Framework\Concerns\Internal\TransfersMediaAssetsForBuildCommands;
76
use Hyde\Framework\Hyde;
7+
use Hyde\Framework\Services\BuildService;
88
use Hyde\Framework\Services\DiscoveryService;
99
use Hyde\Framework\Services\RebuildService;
1010
use LaravelZero\Framework\Commands\Command;
1111

1212
/**
1313
* Hyde Command to build a single static site file.
14+
*
15+
* @see \Hyde\Framework\Testing\Feature\Commands\HydeRebuildStaticSiteCommandTest
1416
*/
1517
class HydeRebuildStaticSiteCommand extends Command
1618
{
17-
use TransfersMediaAssetsForBuildCommands;
18-
1919
/**
2020
* The signature of the command.
2121
*
@@ -48,7 +48,7 @@ public function handle(): int
4848
$time_start = microtime(true);
4949

5050
if ($this->argument('path') === '_media') {
51-
$this->transferMediaAssets();
51+
(new BuildService($this->getOutput()))->transferMediaAssets();
5252

5353
return 0;
5454
}

src/Concerns/Internal/TransfersMediaAssetsForBuildCommands.php

-41
This file was deleted.

0 commit comments

Comments
 (0)