Skip to content

Commit 0604e96

Browse files
author
Ryan McCaw
committed
Fixed deprecated Displatch property
1 parent 391fc99 commit 0604e96

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Console/Command/QueueShell.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
99
* @link http://github.com/MSeven/cakephp_queue
1010
*/
11+
12+
App::uses('Folder', 'Utility');
13+
1114
class QueueShell extends Shell {
1215
public $uses = array(
1316
'Queue.QueuedTask'
@@ -32,9 +35,9 @@ public function initialize() {
3235
App::import('Folder');
3336
$this->_loadModels();
3437

35-
foreach ($this->Dispatch->shellPaths as $path) {
38+
foreach (App::path('shells') as $path) {
3639
$folder = new Folder($path . DS . 'tasks');
37-
$this->tasks = array_merge($this->tasks, $folder->find('queue_.*\.php'));
40+
$this->tasks = array_merge($this->tasks, $folder->find('Queue.*\.php'));
3841
}
3942
// strip the extension fom the found task(file)s
4043
foreach ($this->tasks as &$task) {

0 commit comments

Comments
 (0)