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();
}
}
(testDB関数で)を押すとクラスに到達できるClientBuilder
ので、クラスはClientBuilderを認識していると思います。