Skip to content

Commit

Permalink
3.4.4-community
Browse files Browse the repository at this point in the history
  • Loading branch information
tomolimo committed Feb 6, 2024
1 parent df855cc commit c1ad1f0
Show file tree
Hide file tree
Showing 4,921 changed files with 462,650 additions and 316,823 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
22 changes: 22 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
jobs:
build:
working_directory: ~/processmaker
docker:
- image: devopsstacks/pm:n225-phpunit
steps:
- checkout
- run: service mysqld restart
- run: yum -y install php71-imap
- run: mysql -u root -ppassword -e "create database test;"
- run: mysql -u root -ppassword -e "create database testexternal;"
- run: composer install
- run:
name: Run Test Units
command: |
mkdir coverage
vendor/phpunit/phpunit/phpunit --testdox-html coverage/result.html --coverage-html coverage tests/unit/
- store_artifacts:
path: coverage
destination: coverage

95 changes: 0 additions & 95 deletions Jenkinsfile

This file was deleted.

42 changes: 42 additions & 0 deletions app/Console/Commands/AddParametersTrait.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

namespace App\Console\Commands;

use Maveriks\WebApplication;

trait AddParametersTrait
{

/**
* Create a new queue command.
*
* @return void
*/
public function __construct()
{
$this->signature .= '
{--workspace=workflow : ProcessMaker Indicates the workspace to be processed.}
{--processmakerPath=./ : ProcessMaker path.}
';

$this->description .= ' (ProcessMaker has extended this command)';

parent::__construct();
}

/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
$workspace = $this->option('workspace');
if (!empty($workspace)) {
$webApplication = new WebApplication();
$webApplication->setRootDir($this->option('processmakerPath'));
$webApplication->loadEnvironment($workspace, false);
}
parent::handle();
}
}
39 changes: 39 additions & 0 deletions app/Console/Commands/FailedTableCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

namespace App\Console\Commands;

use Illuminate\Filesystem\Filesystem;
use Illuminate\Queue\Console\FailedTableCommand as BaseFailedTableCommand;
use Illuminate\Support\Composer;

class FailedTableCommand extends BaseFailedTableCommand
{
/**
* The console command name.
*
* @var string
*/
protected $signature = 'queue:failed-table';

/**
* This contains the necessary code to add parameters.
*/
use AddParametersTrait;

/**
* Create a new queue failed-table command.
*
* @return void
*/
public function __construct(Filesystem $files, Composer $composer)
{
$this->signature .= '
{--workspace=workflow : ProcessMaker Indicates the workspace to be processed.}
{--processmakerPath=./ : ProcessMaker path.}
';

$this->description .= ' (ProcessMaker has extended this command)';

parent::__construct($files, $composer);
}
}
20 changes: 20 additions & 0 deletions app/Console/Commands/FlushFailedCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace App\Console\Commands;

use Illuminate\Queue\Console\FlushFailedCommand as BaseFlushFailedCommand;

class FlushFailedCommand extends BaseFlushFailedCommand
{
/**
* The console command name.
*
* @var string
*/
protected $signature = 'queue:flush';

/**
* This contains the necessary code to add parameters.
*/
use AddParametersTrait;
}
14 changes: 14 additions & 0 deletions app/Console/Commands/ForgetFailedCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace App\Console\Commands;

use Illuminate\Queue\Console\ForgetFailedCommand as BaseForgetFailedCommand;

class ForgetFailedCommand extends BaseForgetFailedCommand
{

/**
* This contains the necessary code to add parameters.
*/
use AddParametersTrait;
}
20 changes: 20 additions & 0 deletions app/Console/Commands/ListFailedCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace App\Console\Commands;

use Illuminate\Queue\Console\ListFailedCommand as BaseListFailedCommand;

class ListFailedCommand extends BaseListFailedCommand
{
/**
* The console command name.
*
* @var string
*/
protected $signature = 'queue:failed';

/**
* This contains the necessary code to add parameters.
*/
use AddParametersTrait;
}
20 changes: 20 additions & 0 deletions app/Console/Commands/RestartCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace App\Console\Commands;

use Illuminate\Queue\Console\RestartCommand as BaseRestartCommand;

class RestartCommand extends BaseRestartCommand
{
/**
* The console command name.
*
* @var string
*/
protected $signature = 'queue:restart';

/**
* This contains the necessary code to add parameters.
*/
use AddParametersTrait;
}
14 changes: 14 additions & 0 deletions app/Console/Commands/RetryCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace App\Console\Commands;

use Illuminate\Queue\Console\RetryCommand as BaseRetryCommand;

class RetryCommand extends BaseRetryCommand
{

/**
* This contains the necessary code to add parameters.
*/
use AddParametersTrait;
}
39 changes: 39 additions & 0 deletions app/Console/Commands/TableCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

namespace App\Console\Commands;

use Illuminate\Filesystem\Filesystem;
use Illuminate\Queue\Console\TableCommand as BaseTableCommand;
use Illuminate\Support\Composer;

class TableCommand extends BaseTableCommand
{
/**
* The console command name.
*
* @var string
*/
protected $signature = 'queue:table';

/**
* This contains the necessary code to add parameters.
*/
use AddParametersTrait;

/**
* Create a new queue table command.
*
* @return void
*/
public function __construct(Filesystem $files, Composer $composer)
{
$this->signature .= '
{--workspace=workflow : ProcessMaker Indicates the workspace to be processed.}
{--processmakerPath=./ : ProcessMaker path.}
';

$this->description .= ' (ProcessMaker has extended this command)';

parent::__construct($files, $composer);
}
}
31 changes: 31 additions & 0 deletions app/Console/Commands/WorkCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace App\Console\Commands;

use Illuminate\Queue\Console\WorkCommand as BaseWorkCommand;
use Illuminate\Queue\Worker;

class WorkCommand extends BaseWorkCommand
{

use AddParametersTrait;

/**
* Create a new queue work command.
*
* @param \Illuminate\Queue\Worker $worker
*
* @return void
*/
public function __construct(Worker $worker)
{
$this->signature .= '
{--workspace=workflow : ProcessMaker Indicates the workspace to be processed.}
{--processmakerPath=./ : ProcessMaker path.}
';

$this->description .= ' (ProcessMaker has extended this command)';

parent::__construct($worker);
}
}
3 changes: 1 addition & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class Kernel extends ConsoleKernel
* @var array
*/
protected $commands = [
Commands\PMTranslationsPlugins::class
];

/**
Expand All @@ -34,6 +33,6 @@ protected function schedule(Schedule $schedule)
*/
protected function commands()
{

$this->load(__DIR__ . '/Commands');
}
}
8 changes: 8 additions & 0 deletions app/Jobs/Email.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace App\Jobs;

class Email extends QueuedClosure
{

}
Loading

0 comments on commit c1ad1f0

Please sign in to comment.