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

php artisan chat:serve #12

Open
umairali opened this issue Dec 30, 2014 · 1 comment
Open

php artisan chat:serve #12

umairali opened this issue Dec 30, 2014 · 1 comment

Comments

@umairali
Copy link

Hi

I added

$emitter = new \Evenement\EventEmitter();
$chat = new \Formativ\Chat\Chat($emitter);
Artisan::add(new Formativ\Chat\Command\Serve($chat));

in app/start/artisan.php to call php artisan chat:serve command but its not working

is this correct to call php artisan chat:serve command?

@umairali
Copy link
Author

I found a solution to run this on CentOS 7 if i run this command
php artisan chat:serve
from shel Putty port on server opened and communication start
Now i want to run this command automatically when user open website i add

Artisan::add

command but its not work i try

Artisan::add(new Serve);

but if i use this command error appear

PHP Fatal error: Class 'Serve' not found in /home/test/chat/public_html/app/start/artisan.php on line 19
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class 'Serve' not found","file":"/home/test/chat/public_html/app/start/artisan.php","line":19}}

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

1 participant