#!/usr/bin/env php exists(TARGET_DIRECTORY) === false) { $filesystem->mkdir(TARGET_DIRECTORY); } /** * Mirror the vendor directory with the directory created at the project root */ if ($filesystem->exists(SOURCE_DIRECTORY) === true) { $filesystem->mirror(SOURCE_DIRECTORY, TARGET_DIRECTORY, null, ['override' => true]); } /** * Define the default environment variables */ if ($filesystem->exists(TARGET_DIRECTORY . '/.env') === false) { $filesystem->copy( TARGET_DIRECTORY . '/.env.dist', TARGET_DIRECTORY . '/.env' ); } /** * Define the default Nginx configuration */ if ($filesystem->exists(TARGET_DIRECTORY . '/nginx/conf.d/custom.conf') === false) { $filesystem->copy( TARGET_DIRECTORY . '/nginx/conf.d/symfony.conf.dist', TARGET_DIRECTORY . '/nginx/conf.d/custom.conf' ); } /** * Copy the default Makefile at the project root */ if ($filesystem->exists('Makefile') === false) { $filesystem->copy( TARGET_DIRECTORY . '/Makefile.sample', 'Makefile' ); }