-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yii2-bootstap application setup #325
Comments
Agree with Tobias, Yiinitializr is another example (http://yiinitializr.2amigos.us) -----Original Message----- Would be nice, if creating a yii2-bootstrap project could also setup permissions for Could be implemented with composer scripts, here's a sample implementation for Yii 1.x. Reply to this email directly or view it on GitHub: |
This one is the composer config for application template: https://github.com/yiisoft/yii2/blob/master/apps/bootstrap/composer.json @schmunk42 @tonydspaniard can you handle creating a pull request with code that will set permissions? |
@samdark For sure I can create a PR for this, but I've some questions first, maybe there are changes in Yii2 which could make the process even easier. If we want to trigger something via composer scripts, we have to deliver it in the yii2-bootstrap package, because we don't know the exact dependency order in advance. (We get yiisoft/yii2-bootstrap before we get yiisoft/yii2!) So I created this callback script, which can be configured in console.php which commands to run, when a certain package gets installed (or updated). This was the only way for me in Yii 1.x to accomplish the task of running a command. But this may be improved in Yii2. Any suggestions before I start? Eg. conventions about the command name for the root package and/or extension packages, we shouldn't have to configure every command in advance - at the end. |
btw: Here are the docs about composer scripts. |
I think it can be just a dummy static class with a single install method. No need to use Yii for the install script itself. |
All done. |
Would be nice, if creating a yii2-bootstrap project could also setup permissions for
runtime
andwww/assets
and also migrations or any command provided by package.Could be implemented with composer scripts, here's a sample implementation for Yii 1.x.
The text was updated successfully, but these errors were encountered: