Open GoogleCodeExporter opened 9 years ago
There are only two changes:
1. change this regex:
preg_match('~^[\w]+$~D', $plugin)
to preg_match('~^[\\\\\w]+$~D', $plugin)
NOTE: this allows you to load a namespaced plugin like:
\debug\zfdebug\plugin\Doctrine
2. Change this line:
require_once str_replace('_', DIRECTORY_SEPARATOR, $pluginClass) . '.php';
to if (! class_exists($pluginClass, true)) {
require_once str_replace('_', DIRECTORY_SEPARATOR, $pluginClass) . '.php';
}
NOTE: this allows you to autoload your custom plugin.
Original comment by wilmo...@gmail.com
on 15 Aug 2010 at 9:07
Being able to use namespace plugin classes is a must. The suggested changes
work for me and I like to see them in next release.
Original comment by michael....@gmail.com
on 19 Oct 2010 at 11:43
Original issue reported on code.google.com by
wilmo...@gmail.com
on 15 Aug 2010 at 8:56Attachments: