Closed iamsalnikov closed 10 years ago
The issue is valid but solution isn't the key should be unique for an application so either its generation should be automated as it's done in basic app or left as is.
Thanks for that pointed to my mistake. What if I add in composer.json
to section post-create-project-cmd
command "yii\\composer\\Installer::generateCookieValidationKey"
and add commit to current pull-request? Or left as is?
Please do.
Done.
Thanks!
When I create app using samdark/yii2-minimal template and try to run app, I get error:
yii\web\Request::cookieValidationKey must be configured with a secret key.
In
config/web.php
I add config forrequest
:After that there was no error.