Inheritance: implements Phive\Queue\Queue
Beispiel #1
0
<?php

require __DIR__ . '/../../vendor/autoload.php';
use Phive\Queue\SysVQueue;
$queue = new SysVQueue(0xdeadbeaf, true);
$queue->push((object) ['commandline' => 'ls -la']);
Beispiel #2
0
 public function testSetPermissions()
 {
     $handler = self::getHandler();
     $key = $handler->getOption('key');
     $queue = new SysVQueue($key, null, 0606);
     // force a resource creation
     $queue->count();
     $meta = $handler->getMeta();
     $this->assertEquals(0606, $meta['msg_perm.mode']);
 }
Beispiel #3
0
<?php

require __DIR__ . '/../../vendor/autoload.php';
use Phive\Queue\SysVQueue;
$queue = new SysVQueue(0xdeadbeaf, true);
$queue->push((object) ['command' => 'help', 'args' => ['command_name' => 'list', '--format' => 'xml']]);
Beispiel #4
0
<?php

require __DIR__ . '/../../vendor/autoload.php';
use Phive\Queue\SysVQueue;
$queue = new SysVQueue(0xdeadbeaf, true);
$queue->push('Hello world!');