This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
Releases: wa0x6e/Cake-Resque
Releases · wa0x6e/Cake-Resque
New way to load custom configuration
A new way to load your custom configuration file was added in 4.0.0.
The classic way to load CakeResque bootstrap is:
CakePlugin::load('CakeResque' => array('bootstrap' => true);
If you have passed anything other than true
, read carefully, as it will not works anymore.
If you have a custom bootstrap file, you have to load it with
CakePlugin::load('CakeResque' => array('bootstrap' => array(
'bootstrap_config',
'path/to/your/file.php',
'bootstrap'
));
The path is relative to CakeResque's config
folder.
There is now 2 files to load, in addition to your own config file, as the config and the bootstrap part is now isolated.
Thus, your own custom config file should only contains calls to Configure::write('CakeResque.xxx')
You can also copy the content of bootstrap_config
into your custom bootstrap, save an index in the array.