如何在 docker 容器中安装 wget、安装vim
1,先判断当前容器的 linux 是哪个发行版
cat /etc/issue
cat /etc/issue
> 例如:
> Linux: ~/.composer/vendor/bin/phpcbf
> Windows: c:spacesoftsystemphpcbf.phar
Windows环境注意:
其它时间日期代码:
当提示
hint: The '.git/hooks/pre-commit' hook was ignored because it's not set as executable.
hint: You can disable this warning with `git config advice.ignoredHook false`.
是因为钩子文件没有运行权限,根据情况赋予钩子文件执行权限即可,例如:
chmod 700 .git/hooks/pre-commit
场景:yaf 中 controller 类不能指定 namespace,导致无法通过 PSR2 规范检测