我正在尝试将现有的 Symfony 2.1 应用程序部署到 Azure。为此,我使用 Azure Distribution Bundle ,并且我正在尝试将 Assets 部署到 Azure,如文档 here 所示。 .
但是,我在执行 windowsazure:package 创建包时遇到错误:
Catchable Fatal Error: Argument 2 passed to WindowsAzure\DistributionBundle\Deployment\Assets\BlobStrategy::__construct() must be an instance of WindowsAzure\Blob\BlobRestProxy, none given, called in C:\IGPR\igpr\app\cache\azure\appAzureDebugProjectContainer.php on line 2361 and defined in C:\IGPR\igpr\vendor\beberlei\azure-distribution-bundle\WindowsAzure\DistributionBundle\Deployment\Assets\BlobStrategy.php line 35
这是我的 config.yml 的相关部分:
windows_azure_distribution:
...
services:
blob:
default: UseDevelopmentStorage=true
azureprod: DefaultEndpointsProtocol=http;AccountName=myaccountname;AccountKey=MyVeryLongAccOUntKeY==
assets:
type: blob
connection_name: azureprod
有什么想法吗?似乎无法创建 Blob 代理。如果我尝试使用本地开发存储,我会得到同样的错误。
该 bundle 是通过 Composer 安装的。
最佳答案
看起来这是 Azure 分发包中的一个错误,维护者has now fixed .
关于php - Symfony 和 Azure 分发包 - Azure 中的 Assets ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15247738/