From 045012f9b7619d441d8c5b5800519cb7ac6891b6 Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Fri, 17 Jan 2014 16:10:10 +0100 Subject: Okay, the last patch was actually rubbish. It turns out that you can't hope to bootstrap more than one PHP-based software without messing stuff up, particularly because they rely on global variables without exception. If it is risky and unpredictable for different systems, it is completely impossible with multiple instances of the same. Therefore, the ability to use multiple plugins (and the accompanying config.php structure) has been removed. The only plugin that can be used in conjunction with another is session. --- config.sample.php | 68 +++++++++++++++++-------------------------------------- 1 file changed, 21 insertions(+), 47 deletions(-) (limited to 'config.sample.php') diff --git a/config.sample.php b/config.sample.php index 59e0613..9c1746a 100644 --- a/config.sample.php +++ b/config.sample.php @@ -1,54 +1,28 @@ 'drupal8', - * 'config' => [ - * 'root_path' => '/path/to/drupal8', - * 'site' => 'default', - * ], - * ]; - * - * Example 2: Add a phpBB and MediaWiki subdomain (exact match): - * - * $config['forum.example.com'][0] = [ - * 'plugin' => 'phpbb30', - * 'config => ['root_path' => '/path/to/phpbb'], - * ]; - * $config['wiki.example.com'][0] = [ - * 'plugin' => 'mediawiki', - * 'config' => ['root_path' => '/path/to/mediawiki'], - * ]; - * - * Example 3: Allow session authentication (see plugins/session/README.md) - * - * $config['*'][0] = [ - * 'plugin' => 'phpbb30', - * 'config => ['root_path' => '/path/to/phpbb'], - * ]; - * $config['*'][1] = [ - * 'plugin' => 'session', - * 'config' => [ - * 'mysql' => [ - * 'dsn' => 'mysql:host=localhost;dbname=DATABASE;charset=utf8', - * 'username' => 'USER', - * 'password' => 'PASSWORD', - * 'table' => 'TABLE', - * ], - * 'plugin' => 'phpbb30' - * ], - * ]; + * plugin_conf will always require the `root_path` to the CMS you want to + * authenticate with. Some systems require additional information; Drupal + * needs the site directory (usually `default`). */ -$config['*'][0] = [ - 'plugin' => '', - 'config' => [ - 'root_path' => '', - ], +$config = [ + 'log_path' => 'logs/', + 'plugin' => 'PLUGIN', + 'plugin_conf' => [ + 'root_path' => '', + ], + + // Remove this section if you are not using session authentication. + 'session' => [ + 'mysql' [ + 'dsn' => 'mysql:host=localhost;dbname=DATABASE;charset=utf8', + 'username' => 'USER', + 'password' => 'PASSWORD', + 'table' => 'TABLE', + ], + 'timeout' => 60, + ], ]; -- cgit v1.1