mirror of
https://github.com/jbcr/core.git
synced 2026-03-31 13:22:09 +02:00
24 lines
710 B
PHP
24 lines
710 B
PHP
<?php
|
|
|
|
/**
|
|
* This file runs when `composer create-project` is run in bolt/project, in Bolt 4.2 and later.
|
|
*/
|
|
use Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory;
|
|
|
|
require __DIR__ . '/../../../../../vendor/autoload.php';
|
|
require __DIR__ . '/run.php';
|
|
|
|
$symfonyStyleFactory = new SymfonyStyleFactory();
|
|
$symfonyStyle = $symfonyStyleFactory->create();
|
|
|
|
$symfonyStyle->note('Running composer "post-create-project-cmd" scripts');
|
|
|
|
// Run bolt/project post-create-project script
|
|
run('php bin/post-create-project.php', $symfonyStyle);
|
|
|
|
// Copy the default themes
|
|
run('php bin/console bolt:copy-themes', $symfonyStyle);
|
|
|
|
// Run the welcome command
|
|
run('php bin/console bolt:welcome', $symfonyStyle, true);
|