Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "processmaker/docker-executor-php",
"friendly_name": "PHP Docker Executor",
"description": "PHP script executor for processmaker 4",
"version": "1.4.0",
"version": "1.4.1",
"minimum-stability": "dev",
"license": "GAGPL-3.0-or-later",
"autoload": {
Expand Down
11 changes: 5 additions & 6 deletions src/DockerExecutorPhpServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ class DockerExecutorPhpServiceProvider extends ServiceProvider
{
use PluginServiceProviderTrait;

const version = '1.0.0'; // Required for PluginServiceProviderTrait
public const version = '1.4.1'; // Required for PluginServiceProviderTrait

public function register()
{
}

public function boot()
{
\Artisan::command('docker-executor-php:install', function () {
\Artisan::command('docker-executor-php:install {--no-build : Skip building the script executor image}', function () {
$scriptExecutor = ScriptExecutor::install([
'language' => 'php',
'title' => 'PHP Executor',
Expand All @@ -28,10 +28,9 @@ public function boot()
]);

// Build the instance image. This is the same as if you were to build it from the admin UI
\Artisan::call('processmaker:build-script-executor ' . $scriptExecutor->id);

// Restart the workers so they know about the new supported language
// \Artisan::call('horizon:terminate');
if (!$this->option('no-build')) {
\Artisan::call('processmaker:build-script-executor ' . $scriptExecutor->id);
}
});

$this->commands([TestDocs::class]);
Expand Down