在我当前的symfony 2.2.1项目中,我想安装TCPDFBundle(用于生成PDF文档的包)
我的作曲家。Json是这样的:
{
"name": "symfony/framework-standard-edition",
"description": "The "Symfony Standard Edition" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.2.*",
"tecnick.com/tcpdf": "*"
},
"scripts": {
"post-install-cmd": [
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "alpha",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"branch-alias": {
"dev-master": "2.2-dev"
}
}
}
所以在等待克隆很长时间后,它说时间到了。
[SymfonyComponentProcessExceptionRunTimeException]
The process time-out
这个错误有什么帮助吗?
您试过WhiteOctoberTCPDFBundle
吗?这个包使使用TCPDF库变得很容易。只要像这样把它加到composer.json
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.2.*",
"whiteoctober/tcpdf-bundle": "dev-master"
}
之后,按照这个链接
中的说明操作- https://github.com/whiteoctober/WhiteOctoberTCPDFBundle
答案如下:
COMPOSER_PROCESS_TIMEOUT=30000 php composer.phar install
这意味着,你应该改变超时参数,以便能够安装这个要求。