rad-edition
rad-edition copied to clipboard
Feature/install command
To install the project, you just have to execute
php app/console app:install
To install the project without fixtures, you just have to execute
php app/console app:install --no-fixtures
Why not in the rad bundle ?
@Nek- because it should be the role of the app to provide this command. It's not a bundle related command, it's an app command. Moreover, you can't rely on doctrine:fixtures:load to be present in Rad bundle f.e).
However @PedroTroller, I'm not a fan to pollute the App namespace with something that doesn't belong to the end user.
I'm really not sure, maybe a separate package ? Seems overkill.
In RadBundle as said @Nek- ? See points above.
the bin folder ? That's where I would put an init script.
And by the way, I always use bash script for that, but there is nothing wrong to use a symfony command for that.
I'm for the bin folder :) . With a namespace like "Command" it could be great isn't it ?
I've implemented this command because of Sylius : https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/InstallerBundle/Command/InstallCommand.php I think is't a good idea.