我正试着在我的PHP项目中使用Neoxygen。但是我得到了这个错误:
Class 'Neoxygen\NeoClient\ClientBuilder' not found in /var/www/html/work/api/vendor/myproj/myproj-core/src/MyProj/DatabaseTest/ManagersTest/AdminDbManagerTest.php.我的代码:
<?php
namespace MyProj\DatabaseTest\ManagersTest;
use myProjCore\Tasks\AbstractClasses\ApiTask;
use Neoxygen\NeoClient\ClientBuilder;
class AdminDbManagerTest extends ApiTask
{
/**
* Start the running of the task
*/
public function start()
{
$this->testDB();
}
private function testDB()
{
$client = ClientBuilder::create()
->addConnection('default','http','localhost',7474)
->build();
}
}我可以通过按ClientBuilder (在testDB函数上)到达这个类,所以我猜这个类可以识别这个ClientBuilder。
发布于 2015-11-09 16:15:12
问题解决了。我将这些文件放入我的Git中,然后将它们拉回,现在它可以工作了。我认为问题出在我更新的作曲器中。
https://stackoverflow.com/questions/33604392
复制相似问题