acacha / llum

Llum (light in catalan language) illuminates your Laravel projects speeding up your Github/Laravel development workflow
MIT License
108 stars 13 forks source link

Service Providers and Aliases set multiple times if run again after error #12

Open pepijnblom opened 8 years ago

pepijnblom commented 8 years ago

I've noticed that llum adds the Service Providers and Aliases in config/app.php multiple times if you have an error (and thus the installation failed) and then run it again.

I was having an error with composer when running PHP 7.0.8 from MAMP. After switching to 5.6 for cli it managed to get through but then I got errors because of the duplicate SPs and Aliases.

acacha commented 8 years ago

Yes is a known bug. This package is designed only for one use, repeated uses can cause errors/duplications. I don't know how to avoid that so any suggestion will be welcomed or please feel free to propose a pull request.

Thanks!