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

New way to load custom configuration

Latest
Compare
Choose a tag to compare
@wa0x6e wa0x6e released this 25 Oct 23:33
· 115 commits to master since this release

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.

Changelog

  • [new] Fix #20: Ease personalized plugin configuration [@bar]
  • [fix] Fix #33: Don't use sudo when the current user is already the target user
  • [fix] Default process owner is the one running the webserver, and not the one owning the file
  • [fix] Fix #25: Workers now works with exotic directory structure