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

Cant find Phactory error when attempting to use with composer. #41

Open
eko3alpha opened this issue May 29, 2015 · 1 comment
Open

Cant find Phactory error when attempting to use with composer. #41

eko3alpha opened this issue May 29, 2015 · 1 comment

Comments

@eko3alpha
Copy link

You cant use this "as is" with composer. This was something I could not find in the documentation. You must have the following "use" keyword

use Phactory\Sql\Phactory;

at the beginning of your file if you want to use it as it is currently documented. You will get the following error otherwise:

Fatal error: Class 'Phactory' not found in ...

I was really excited to use this library in my unit tests... until none of it really worked. The documentation is horribly outdated. I appreciate the attempt made to make this a composer package, however it does not work at all, and I constantly keep getting errors as I "fix" one item after another.

@yang-wei
Copy link

yang-wei commented Jun 8, 2015

@eko3alpha
If you autoload it via composer then just have to.

use \Phactory\Sql\Phactory;

If you are not sure whether it had been autoloaded, check your vendor/composer/autoload_namespaces.php.

Mine looks:

...
'Phactory' => array($vendorDir . '/chriskite/phactory/lib'),
...

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