rad-edition icon indicating copy to clipboard operation
rad-edition copied to clipboard

Feature/install command

Open PedroTroller opened this issue 11 years ago • 4 comments

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

PedroTroller avatar Jan 15 '14 10:01 PedroTroller

Why not in the rad bundle ?

Nek- avatar Jan 16 '14 16:01 Nek-

@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.

docteurklein avatar Jan 16 '14 17:01 docteurklein

I'm for the bin folder :) . With a namespace like "Command" it could be great isn't it ?

Nek- avatar Jan 17 '14 08:01 Nek-

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.

PedroTroller avatar Jan 17 '14 09:01 PedroTroller