Closed NourEldin275 closed 7 years ago
I was able to fix it by using require_once
instead of use
.
Like so
//use Semantics3_Products;
require_once(__DIR__ . '/../../../../vendor/semantics3/semantics3-php/lib/Semantics3.php');
@NourEldin275 require_once
works best but I'd recommend using require
if you know that you will not be referencing the library anywhere else. But both work the same.
Closing this issue for now.
I'm getting the following exception:
The error is thrown from
vendor/semantics3/semantics3-php/lib/Semantics3/ApiConnector.php at line 23
:What I'm doing wrong here? I looked into the files of the library and it seems that the
OAuthStore
is already in the/lib/oauth-php/library/
directory which I think should work but for some reason it is trying to load that class from the global namespace!Here is the code I've written: