Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Plugin Directory is hardcoded. Should use App::pluginPath($plugin) #97

Description

@abalonepaul

I was having issuses with CakeResqueue not finding Shell in a non-standard Plugin path.

The plugin path is hardcoded on line 45 of Resque_Job_Creator.php. This should use App::pluginPath($plugin). I have plugins that are in another directory and CakeResque can't find them. I had to create a symlink from my Plugin directory to the actual path to figure out what the problem was.

Replace this:
$classpath = self::$rootFolder . (empty($plugin) ? '' : 'Plugin' . DS . $plugin . DS) . 'Console' . DS . 'Command' . DS . $model . '.php';

with this:

if (empty($plugin)) {
$classpath = self::$rootFolder . 'Console' . DS . 'Command' . DS . $model . '.php';
} else {
$classpath = App::pluginPath($plugin) . 'Console' . DS . 'Command' . DS . $model . '.php';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions