Skip to content

Commit

Permalink
Merge pull request #274 from orchestral/9/vendor-publish-command
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone authored Dec 11, 2024
2 parents 91a6684 + c69a74c commit 171cf18
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/Foundation/Console/VendorPublishCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace Orchestra\Testbench\Foundation\Console;

use Illuminate\Foundation\Console\VendorPublishCommand as Command;

use function Orchestra\Testbench\package_path;

/**
* @codeCoverageIgnore
*/
class VendorPublishCommand extends Command
{
/** {@inheritDoc} */
#[\Override]
protected function status($from, $to, $type)
{
$from = str_replace(package_path().'/', '', (string) realpath($from));

$to = str_replace(base_path().'/', '', (string) realpath($to));

$this->components->task(\sprintf(
'Copying %s [%s] to [%s]',
$type,
$from,
$to,
));
}
}
1 change: 1 addition & 0 deletions src/Foundation/TestbenchServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function boot(): void
Console\PurgeSkeletonCommand::class,
Console\SyncSkeletonCommand::class,
Console\ServeCommand::class,
Console\VendorPublishCommand::class,
]);
}
}
Expand Down

0 comments on commit 171cf18

Please sign in to comment.