php - Symfony 和 Azure 分发包 - Azure 中的 Assets

标签 php symfony azure

我正在尝试将现有的 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/

相关文章:

javascript - 复选框样式并使其选中

symfony - 将 FOSUserBundle 与 FOSOAuthServer 集成时出错

php - 将类添加到 symfony2 中的无效表单错误

php - 如何使用一对多、双向 Doctrine ?

python - 无法从 Python 连接到在 Azure Linux VM 上运行的 Redis 实例

java - 无法从 Php Exec() 函数执行 java Jar?

php - 通过 HTTPS 发布表单值

postgresql - Azure PostgreSQL 的 pg_database_size 非常慢

php - 从 TeSTLink 按下保存按钮时未触发 onClick

azure - 使用Azure服务总线作为备份消息服务是一个好的模式吗?