Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'ServiceFactory' not found #9

Open
jabedbd opened this issue Dec 23, 2016 · 1 comment
Open

Class 'ServiceFactory' not found #9

jabedbd opened this issue Dec 23, 2016 · 1 comment

Comments

@jabedbd
Copy link

jabedbd commented Dec 23, 2016

i found: Class 'ServiceFactory' not found

my code:

require_once('org/nameapi/client/services/ServiceFactory.php');
use org\nameapi\ontology\input\context\Context;
use org\nameapi\ontology\input\context\Priority;
$context = Context::builder()
->place('US')
->priority(Priority::REALTIME())
->build();
$serviceFactory = new ServiceFactory('i put here my key prefix and suffix properly with hiphen',$context);

@venmey
Copy link

venmey commented Oct 18, 2017

Adding this line before creating the $context fixed the issue for me:

use org\nameapi\client\services\ServiceFactory;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants