Laravel 4 - how to use the package class as a queue worker -


i have built first laravel 4 package.

i have used artisan create structure.

i need use package process queue (as worker).

i using builtin beanstalk queue , have configured , able add queue.

what correct syntax add correct path class use process queue.

i can working if class saved here /app/controllers/testclass.php ( beacuse gets autoloaded)
example:

route::get('/addtoqueue', function() {     $message = "this test message";     queue::push('testclass', array('message' => $message));     return 'added queue'; }); 

but should put in class in queue if class in package?
file in workbench: workbench\vendor\package\src\vendor\package

my package composer file contains

"autoload": {     "psr-0": {         "qwickli\\tika": "src/"     } }, 

eg. queue::push('vendor\package\testclass', array('message' => $message));

when run php artisan queue:listen correctly picks items in queue , not find class (in package) use process queue.

reason class not being loaded (or autoloaded) , don't know how make happen.

thanks , help

looks package classes not been autoloaded.

try access package folder, workbench/vendor/package , run compsoer update. if composer "autoload" settings correct, should work.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -