File tree 2 files changed +4
-45
lines changed
2 files changed +4
-45
lines changed Original file line number Diff line number Diff line change 3
3
namespace Hyde \Framework \Commands ;
4
4
5
5
use Exception ;
6
- use Hyde \Framework \Concerns \Internal \TransfersMediaAssetsForBuildCommands ;
7
6
use Hyde \Framework \Hyde ;
7
+ use Hyde \Framework \Services \BuildService ;
8
8
use Hyde \Framework \Services \DiscoveryService ;
9
9
use Hyde \Framework \Services \RebuildService ;
10
10
use LaravelZero \Framework \Commands \Command ;
11
11
12
12
/**
13
13
* Hyde Command to build a single static site file.
14
+ *
15
+ * @see \Hyde\Framework\Testing\Feature\Commands\HydeRebuildStaticSiteCommandTest
14
16
*/
15
17
class HydeRebuildStaticSiteCommand extends Command
16
18
{
17
- use TransfersMediaAssetsForBuildCommands;
18
-
19
19
/**
20
20
* The signature of the command.
21
21
*
@@ -48,7 +48,7 @@ public function handle(): int
48
48
$ time_start = microtime (true );
49
49
50
50
if ($ this ->argument ('path ' ) === '_media ' ) {
51
- $ this ->transferMediaAssets ();
51
+ ( new BuildService ( $ this -> getOutput ())) ->transferMediaAssets ();
52
52
53
53
return 0 ;
54
54
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments