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

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

Open
abalonepaul opened this issue Feb 15, 2016 · 1 comment
Open

Comments

@abalonepaul
Copy link

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';
}

@abalonepaul
Copy link
Author

Line 45 of the Resque_Job_Creator.php

It's in the issue.

On Mar 2, 2016, at 4:23 AM, avneeshroks [email protected] wrote:

hey @abalonepaul,

where to make this changes?

Thanks.


Reply to this email directly or view it on GitHub.

Paul Marshall
Protelligence
[email protected]
http://www.protelligence.com
415-261-8774

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant