4
我想使用作曲家將我的供應商文件夾添加一個bitbucket存儲庫。這是我在我的composer.json:autoload bitbucket存儲庫+ composer.json
{
"require": {
"silex/silex": "~1.1",
"doctrine/dbal": "2.2.*",
"twig/twig" : "1.*",
"symfony/twig-bridge": "~2.3",
"twitter/bootstrap": "*",
"symfony/assetic-bundle": "2.1.*",
"leafo/lessphp": "*",
"silex/web-profiler": "~1.0",
"symfony/security": "~2.3",
"symfony/form": "~2.3",
"symfony/validator": "~2.3",
"symfony/config": "~2.3",
"symfony/translation": "~2.3",
"monolog/monolog": ">=1.0.0",
"symfony/yaml": "~2.3",
"jasongrimes": "dev-master"
},
"autoload": {
"psr-0": { "": "src/" }
},
"repositories": [
{
"type": "package",
"package": {
"name": "jasongrimes",
"version": "dev-master",
"source": {
"url": "mybitbucketurl",
"type": "git",
"reference": "origin/master"
}
}
}
]
}
我沒有在我的到位桶儲存庫composer.json,我想通過作曲家的補充。現在,當我跑我的應用程序出現以下錯誤:
Fatal error: Class 'SimpleUser\UserServiceProvider' not found in app/bootstrap.php on line 82
我如何確保這也是在自動裝?
不應該只是'reference'裏面的'master'嗎?除此之外,它與我用來將GitHub存儲庫克隆到我的供應商中幾乎完全相同。 –
您的錯誤與composer或bitbucket無關,PHP無法加載類 –
SimpleUser \ UserServiceProvider來自哪裏?你正在嘗試PSR-0自動加載它嗎? – Joseph