mirror of
http://124.126.16.154:8888/singularity/hdk-skeleton.git
synced 2026-01-15 07:15:06 +08:00
35 lines
904 B
PHP
Executable File
35 lines
904 B
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* This file is part of Hyperf.
|
|
*
|
|
* @link https://www.hyperf.io
|
|
* @document https://hyperf.wiki
|
|
* @contact group@hyperf.io
|
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
|
*/
|
|
namespace Installer;
|
|
|
|
use Composer\Script\Event;
|
|
|
|
class Script
|
|
{
|
|
public static function install(Event $event): void
|
|
{
|
|
$installer = new OptionalPackages($event->getIO(), $event->getComposer());
|
|
|
|
$installer->io->write('<info>设置可选包</info>');
|
|
|
|
$installer->setupRuntimeDir();
|
|
$installer->removeDevDependencies();
|
|
$installer->setupProject();
|
|
$installer->installHyperfScript();
|
|
$installer->promptForOptionalPackages();
|
|
$installer->updateDockerEnv();
|
|
$installer->updateRootPackage();
|
|
$installer->removeInstallerFromDefinition();
|
|
$installer->finalizePackage();
|
|
}
|
|
}
|