protected function cleanup(): void
    {
        $this->output->writeln('');
        $this->output->write('Cleaning up... ');
        $this->output->writeln('');
        $this->output->writeln('');

        $projectDir = $this->getContainer()->getParameter('kernel.project_dir');

        try {
            $fileSystem = $this->getContainer()->get('filesystem');

            if (
                $fileSystem->exists($projectDir . '/.git') &&
                $this->questionHelper->ask(
                    $this->input,
                    $this->output,
                    $this->getConfirmationQuestion(
                        'Do you want to delete the <comment>.git</comment> folder?',
                        true
                    )
                )
            ) {
                $fileSystem->remove($projectDir . '/.git');
            }
        } catch (Exception $e) {
            // Do nothing
        }
    }
protected function cleanup(): void
    {
        $this->output->writeln('');
        $this->output->write('Cleaning up... ');
        $this->output->writeln('');
        $this->output->writeln('');

        $projectDir = $this->getContainer()->getParameter('kernel.project_dir');

        try {
            $fileSystem = $this->getContainer()->get('filesystem');

            if (
                $fileSystem->exists($projectDir . '/.git') &&
                $this->questionHelper->ask(
                    $this->input,
                    $this->output,
                    $this->getConfirmationQuestion(
                        'Do you want to delete the <comment>.git</comment> folder?',
                        true
                    )
                )
            ) {
                $fileSystem->remove($projectDir . '/.git');
            }
        } catch (Exception $e) {
            // Do nothing
        }
    }
protected function cleanup ( ) : void { $ this -> output -> writeln ( '' ) ; $ this -> output -> write ( 'Cleaning up... ' ) ; $ this -> output -> writeln ( '' ) ; $ this -> output -> writeln ( '' ) ; $ projectDir = $ this -> getContainer ( ) -> getParameter ( 'kernel.project_dir' ) ; try { $ fileSystem = $ this -> getContainer ( ) -> get ( 'filesystem' ) ; if ( $ fileSystem -> exists ( $ projectDir . '/.git' ) && $ this -> questionHelper -> ask ( $ this -> input , $ this -> output , $ this -> getConfirmationQuestion ( 'Do you want to delete the <comment>.git</comment> folder?' , true ) ) ) { $ fileSystem -> remove ( $ projectDir . '/.git' ) ; } } catch ( Exception $ e ) { // Do nothing } }
Cleans up various leftover files.
Cleans up various leftover files .