Welcome Guest, Not a member yet? Register   Sign In
Class not found
#3

Yes. I have require 'vendor/autoload.php'; at the top of the module. I just noticed that these two lines also appear in the module:
use Sendpulse\RestApi\ApiClient;
use Sendpulse\RestApi\Storage\FileStorage;

As I said above the actual php files were installed by composer at
/opt/docker-substantiator2/vendor/sendpulse/rest-api/src/ApiClient.php
/opt/docker-substantiator2/vendor/sendpulse/rest-api/src/Storage/FileStorage.php

Do I need to even have a use statement?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
Class not found - by richb201 - 05-18-2021, 12:59 PM
RE: Class not found - by iRedds - 05-18-2021, 08:00 PM
RE: Class not found - by richb201 - 05-19-2021, 03:55 AM
RE: Class not found - by iRedds - 05-19-2021, 06:37 AM
RE: Class not found - by richb201 - 05-19-2021, 07:12 AM
RE: Class not found - by iRedds - 05-19-2021, 07:23 AM
RE: Class not found - by paulbalandan - 05-19-2021, 10:20 AM
RE: Class not found - by richb201 - 05-19-2021, 12:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB