Skip to content

Commit 9c94823

Browse files
committed
Update README
1 parent f12bb12 commit 9c94823

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@ $scheduler->addJob($appJob)
141141

142142
```
143143

144+
When pulling up the queue to run the application command, the application object then
145+
needs to be registered with the queue object in order for it to find the command to execute:
146+
147+
```php
148+
use Pop\Queue;
149+
150+
$adapter = new Queue\Adapter\File('queues');
151+
$queue = Queue\Queue::load('pop-queue', $adapter, $application);
152+
153+
```
154+
144155
### Executing a System Command
145156

146157
##### WARNING: Take caution in running and executing system commands from a PHP application

0 commit comments

Comments
 (0)