We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 391fc99 commit 0604e96Copy full SHA for 0604e96
Console/Command/QueueShell.php
@@ -8,6 +8,9 @@
8
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
9
* @link http://github.com/MSeven/cakephp_queue
10
*/
11
+
12
+App::uses('Folder', 'Utility');
13
14
class QueueShell extends Shell {
15
public $uses = array(
16
'Queue.QueuedTask'
@@ -32,9 +35,9 @@ public function initialize() {
32
35
App::import('Folder');
33
36
$this->_loadModels();
34
37
- foreach ($this->Dispatch->shellPaths as $path) {
38
+ foreach (App::path('shells') as $path) {
39
$folder = new Folder($path . DS . 'tasks');
- $this->tasks = array_merge($this->tasks, $folder->find('queue_.*\.php'));
40
+ $this->tasks = array_merge($this->tasks, $folder->find('Queue.*\.php'));
41
}
42
// strip the extension fom the found task(file)s
43
foreach ($this->tasks as &$task) {
0 commit comments