Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete internal deprecated trait TransfersMediaAssetsForBuildCommands.php #306

Merged
merged 4 commits into from
Jul 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.