From 2c642f594fc9178a77e139e25c9c5a08cc6e8332 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Tue, 11 Feb 2014 18:23:59 +0100 Subject: [PATCH] Add patch to version 3.9.0-alpha.11 --- config/configuration.sample.yml | 14 ++++++ lib/classes/patch/390alpha11a.php | 78 +++++++++++++++++++++++++++++++ lib/conf.d/configuration.yml | 14 ++++++ 3 files changed, 106 insertions(+) create mode 100644 lib/classes/patch/390alpha11a.php diff --git a/config/configuration.sample.yml b/config/configuration.sample.yml index bc00f45118..2676a56c24 100644 --- a/config/configuration.sample.yml +++ b/config/configuration.sample.yml @@ -29,10 +29,24 @@ main: type: Alchemy\Phrasea\SearchEngine\Phrasea\PhraseaEngine options: [] task-manager: + status: started logger: max-files: 10 enabled: true level: INFO + listener: + protocol: tcp + host: 127.0.0.1 + port: 6660 + linger: 500 + publisher: + protocol: tcp + host: 127.0.0.1 + port: 13598 + websocket-server: + host: local.phrasea + port: 9090 + ip: 0.0.0.0 session: type: 'file' options: [] diff --git a/lib/classes/patch/390alpha11a.php b/lib/classes/patch/390alpha11a.php new file mode 100644 index 0000000000..b4ddddc1b9 --- /dev/null +++ b/lib/classes/patch/390alpha11a.php @@ -0,0 +1,78 @@ +release; + } + + /** + * {@inheritdoc} + */ + public function require_all_upgrades() + { + return false; + } + + /** + * {@inheritdoc} + */ + public function concern() + { + return $this->concern; + } + + /** + * {@inheritdoc} + */ + public function getDoctrineMigrations() + { + return []; + } + + /** + * {@inheritdoc} + */ + public function apply(base $appbox, Application $app) + { + $app['conf']->set(['main', 'task-manager', 'status'], 'started'); + $app['conf']->set(['main', 'websocket-server'], [ + 'host' => parse_url($app['conf']->get('servername'), PHP_URL_HOST), + 'port' => 9090, + 'ip' => '0.0.0.0', + ]); + $app['conf']->set(['main', 'task-manager', 'listener'], [ + 'protocol' => 'tcp', + 'host' => '127.0.0.1', + 'port' => 6660, + 'linger' => 500, + ]); + $app['conf']->set(['main', 'task-manager', 'publisher'], [ + 'protocol' => 'tcp', + 'host' => '127.0.0.1', + 'port' => 13598, + ]); + } +} diff --git a/lib/conf.d/configuration.yml b/lib/conf.d/configuration.yml index 481d633047..7d6c9f0739 100644 --- a/lib/conf.d/configuration.yml +++ b/lib/conf.d/configuration.yml @@ -29,10 +29,24 @@ main: type: Alchemy\Phrasea\SearchEngine\Phrasea\PhraseaEngine options: [] task-manager: + status: started logger: max-files: 10 enabled: true level: INFO + listener: + protocol: tcp + host: 127.0.0.1 + port: 6660 + linger: 500 + publisher: + protocol: tcp + host: 127.0.0.1 + port: 13598 + websocket-server: + host: local.phrasea + port: 9090 + ip: 0.0.0.0 session: type: 'file' options: []