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

[ReflectionException] Class TaskProcess\Services\SendMail does not exist #5

Closed
dereckmartin opened this issue Mar 11, 2015 · 2 comments

Comments

@dereckmartin
Copy link

I have setup this up per the README.md on L4.2. When I push to the queue, I see the queue grow in gearadmin --status. However the tasks always fail. Running artisan queue:work shows this:

screenshot 2015-03-11 01 36 21

This is the directory where the SendEmail class is located.

ls -l app/service/
total 8
-rw-r--r-- 1 vagrant vagrant 327 Mar 11 05:21 GearmanTest.php
-rw-r--r-- 1 vagrant vagrant 487 Mar 11 05:29 SendMail.php

Is there something missing from the docs that I do not see.

@dereckmartin
Copy link
Author

Well, I don't know the issue. However, adding app/service to the composer autoload classmaps and running autodump allowed the class to be found, and appears to have solved my particular problem.

@pafelin
Copy link
Owner

pafelin commented Mar 13, 2015

the sendmail service was just part of the example. You can put any class you want as a handler of the job

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