Skip to content

Commit

Permalink
Merge pull request #306 from hydephp/remove-deprecated-internal-trait
Browse files Browse the repository at this point in the history
Delete internal deprecated trait TransfersMediaAssetsForBuildCommands.php
  • Loading branch information
caendesilva authored Jul 31, 2022
2 parents 612b24d + 411c56e commit 7997b24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
namespace Hyde\Framework\Commands;

use Exception;
use Hyde\Framework\Concerns\Internal\TransfersMediaAssetsForBuildCommands;
use Hyde\Framework\Hyde;
use Hyde\Framework\Services\BuildService;
use Hyde\Framework\Services\DiscoveryService;
use Hyde\Framework\Services\RebuildService;
use LaravelZero\Framework\Commands\Command;

/**
* Hyde Command to build a single static site file.
*
* @see \Hyde\Framework\Testing\Feature\Commands\HydeRebuildStaticSiteCommandTest
*/
class HydeRebuildStaticSiteCommand extends Command
{
use TransfersMediaAssetsForBuildCommands;

/**
* The signature of the command.
*
Expand Down Expand Up @@ -48,7 +48,7 @@ public function handle(): int
$time_start = microtime(true);

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

return 0;
}
Expand Down

This file was deleted.

0 comments on commit 7997b24

Please sign in to comment.