Ljonka has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/390438 )
Change subject: WIP: BlueSpiceFoundation: Boot Symphony kernel with Workflower bundle, Base ...................................................................... WIP: BlueSpiceFoundation: Boot Symphony kernel with Workflower bundle, Base Change-Id: I0f3b9e5d9cbd03139739897b5dc83f7ff5ef44b2 --- A app/config/config.yml M composer.json M includes/CoreHooks.php A src/AppKernel.php 4 files changed, 35 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation refs/changes/38/390438/1 diff --git a/app/config/config.yml b/app/config/config.yml new file mode 100644 index 0000000..23bfb2c --- /dev/null +++ b/app/config/config.yml @@ -0,0 +1,6 @@ +# app/config/config.yml +phpmentors_workflower: + serializer_service: phpmentors_workflower.base64_php_workflow_serializer # Defaults to `phpmentors_workflower.php_workflow_serializer` + workflow_contexts: + app: + definition_dir: "%kernel.root_dir%/../src/AppBundle/Resources/config/workflower" # A directory where BPMN files for the `app` context are stored \ No newline at end of file diff --git a/composer.json b/composer.json index 136fa1b..c4a38da 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,9 @@ "ext-gd": "*", "ext-tidy": "*", "param-processor/param-processor": "~1.2", - "composer/installers": "~1.0" + "composer/installers": "~1.0", + "phpmentors/workflower": "1.3.*", + "phpmentors/workflower-bundle": "1.4.*" }, "require-dev": { "jakub-onderka/php-parallel-lint": "0.9.2", diff --git a/includes/CoreHooks.php b/includes/CoreHooks.php index 0a9489b..b209c65 100644 --- a/includes/CoreHooks.php +++ b/includes/CoreHooks.php @@ -21,6 +21,9 @@ $GLOBALS['wgExtensionFunctions'], 'BsCore::doInitialise' ); + + $kernel = new \BlueSpice\AppKernel('prod', false); + $kernel->boot(); } public static function onSetupAfterCache() { diff --git a/src/AppKernel.php b/src/AppKernel.php new file mode 100644 index 0000000..11e3804 --- /dev/null +++ b/src/AppKernel.php @@ -0,0 +1,23 @@ +<?php + +namespace BlueSpice; + +use Symfony\Component\HttpKernel\Kernel; + +class AppKernel extends Kernel { + + public function registerBundles() { + return array( + new \PHPMentors\WorkflowerBundle\PHPMentorsWorkflowerBundle() + ); + } + + public function registerContainerConfiguration( \Symfony\Component\Config\Loader\LoaderInterface $loader ) { + $loader->load( $this->getProjectDir() . '/app/config/config.yml' ); + } + + public function getRootDir() { + return realpath( __DIR__ . "/../" ); + } + +} -- To view, visit https://gerrit.wikimedia.org/r/390438 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0f3b9e5d9cbd03139739897b5dc83f7ff5ef44b2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation Gerrit-Branch: master Gerrit-Owner: Ljonka <l.verhovs...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits