Я пытался решить, почему мой скрипт не вызывается.
Я использую PHP Google Standard App Engine
. У меня есть класс Users со следующей конструкцией / members:
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Kreait\Firebase\Factory;
class Users {
//db
protected $database;
protected $dbname = 'users';
private $ref;
<member_variables>
public function __construct(<arguments>){
//firebase sync
$firebase = (new Factory())->create();
$this->database = $firebase->getDatabase();
$this->ref = $this->database->getReference();
<member assignment>
}
Мой код перестает выполняться, когда я вызываю этот класс. Здесь я что-то не так делаю?
Спасибо :)