Split detail page contracts
This commit is contained in:
26
lib/Console/Commands/Module/AssetsSyncCommand.php
Normal file
26
lib/Console/Commands/Module/AssetsSyncCommand.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Console\Commands\Module;
|
||||
|
||||
use MintyPHP\Console\Command;
|
||||
|
||||
final class AssetsSyncCommand extends Command
|
||||
{
|
||||
public function name(): string
|
||||
{
|
||||
return 'module:assets-sync';
|
||||
}
|
||||
|
||||
public function description(): string
|
||||
{
|
||||
return 'Publish module web assets to web/modules/';
|
||||
}
|
||||
|
||||
public function execute(array $args, array $options): int
|
||||
{
|
||||
require_once __DIR__ . '/../../../../bin/module-cli-bootstrap.php';
|
||||
require_once __DIR__ . '/../../../../bin/module-assets-sync.php';
|
||||
|
||||
return moduleAssetsSyncRun();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user