You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
require __DIR__.'/vendor/autoload.php';
use Beanie\Beanie;
// create a Producer for the pool
$producer = Beanie::pool(['localhost:11300'])->producer();
// tell the producer all jobs created should go to a certain tube
$producer->use('some-tube');
// put the job on a random connection in the pool
$job = $producer->put('some job data');
print_r($job->stats());
php producer.php
PHP Fatal error: Uncaught Error: Call to undefined method Beanie\Producer::use() in /home/username/beanstalkd/producer.php:11
Stack trace:
#0 {main}
thrown in /home/username/beanstalkd/producer.php on line 11
php -v
PHP 7.0.4-7ubuntu2 (cli) ( NTS )
beanstalkd 1.10
The text was updated successfully, but these errors were encountered:
producer.php
php producer.php
php -v
The text was updated successfully, but these errors were encountered: