SocalNick / orchestrate-php-client

A PHP client for Orchestrate.io
BSD 3-Clause "New" or "Revised" License
32 stars 5 forks source link

namespacing is not working #5

Closed CyberKronos closed 9 years ago

CyberKronos commented 9 years ago

When following the documentation, all functions being called from different files are getting back "fatal error: class 'SocialNick\Orchestrate...' not found"

sportarc commented 9 years ago

Make sure you use Composer correctly. Are you doing your "autoload" at the beginning of each file?

In my code:

require_once APPPATH.'/third_party/vendor/autoload.php';
use SocalNick\Orchestrate\Client;
use SocalNick\Orchestrate\KvPutOperation;

You need to call the composer autoload.php so it loads the Vendor libraries. See the composer documentation.