I am trying to use ReactPHP in a Laravel 5.5 installation. In a non-laravel project it works fine. I've copied this library to
DOCUMENT_ROOT/vendor/react
The class I'm trying to load is DOCUMENT_ROOT/vendor/react/event-loop/src/Factory.php
I am using absolute referencing rather than using name-spaces - so in my class that uses React I have:
$loop = \React\EventLoop\Factory::create();
Laravel is complaining with:
Class 'React\EventLoop\Factory' not found
How can I get it to load, and is the vendor
directory the right place to put it?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2DuorBr
via IFTTT
Aucun commentaire:
Enregistrer un commentaire