Symfony2 为自定义资源创建符号 link
Symfony2 create symbolic link to custom resources
在安装或更新 symfony2 时,在 bundle 文件夹内的 web 文件夹中为不同的 bundle 创建了符号链接。
我想在 symfony2 install/update 命令上做同样的事情来为不同的资源创建更多的符号链接,路径在包之外。
如果不编写 class 或函数,我如何做到这一点?
在某些事件上执行脚本是作曲家的功能。你可能会看看 this article。
示例:
{
"scripts": {
"post-install-cmd": [
"script.sh --param=value"
],
}
}
在安装或更新 symfony2 时,在 bundle 文件夹内的 web 文件夹中为不同的 bundle 创建了符号链接。
我想在 symfony2 install/update 命令上做同样的事情来为不同的资源创建更多的符号链接,路径在包之外。
如果不编写 class 或函数,我如何做到这一点?
在某些事件上执行脚本是作曲家的功能。你可能会看看 this article。
示例:
{
"scripts": {
"post-install-cmd": [
"script.sh --param=value"
],
}
}