Skip to content

Commit 73e50cc

Browse files
Merge branch 'v4-dev' of github.com:cleverage/process-bundle into v4-dev
2 parents 2c45601 + 9a10410 commit 73e50cc

File tree

185 files changed

+1031
-1207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+1031
-1207
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
/phpunit.xml
99
.phpunit.result.cache
1010
.phpunit.cache
11+
.php-cs-fixer.cache
1112
coverage-report

.php-cs-fixer.dist.php

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the CleverAge/ProcessBundle package.
5+
*
6+
* Copyright (c) 2017-2023 Clever-Age
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
if (!file_exists(__DIR__.'/src')) {
13+
exit(0);
14+
}
15+
16+
$fileHeaderComment = <<<'EOF'
17+
This file is part of the CleverAge/ProcessBundle package.
18+
19+
Copyright (c) 2017-2023 Clever-Age
20+
21+
For the full copyright and license information, please view the LICENSE
22+
file that was distributed with this source code.
23+
EOF;
24+
25+
return (new PhpCsFixer\Config())
26+
->setRules([
27+
'@PHP71Migration' => true,
28+
'@PHPUnit75Migration:risky' => true,
29+
'@Symfony' => true,
30+
'@Symfony:risky' => true,
31+
'protected_to_private' => false,
32+
'native_constant_invocation' => ['strict' => false],
33+
'header_comment' => ['header' => $fileHeaderComment],
34+
'modernize_strpos' => true,
35+
'get_class_to_class_keyword' => true,
36+
])
37+
->setRiskyAllowed(true)
38+
->setFinder(
39+
(new PhpCsFixer\Finder())
40+
->in(__DIR__.'/src')
41+
->append([__FILE__])
42+
)
43+
->setCacheFile('.php-cs-fixer.cache')
44+
;

Makefile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
# Include .env.dist for the default values
2-
include .env.dist
3-
4-
# Include .env only if it exists
5-
ifneq ("",$(wildcard $(.env)))
6-
include .env
7-
endif
1+
.ONESHELL:
2+
SHELL := /bin/bash
83

94
test:
105
php -dxdebug.mode=coverage vendor/bin/phpunit --coverage-html coverage-report
116

12-
linter:
13-
vendor/bin/rector process
14-
vendor/bin/ecs check --fix
7+
linter: #[Linter]
8+
vendor/bin/php-cs-fixer fix
9+
10+
phpstan: #[Phpstan]
1511
vendor/bin/phpstan

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Compatible with every [currently supported Symfony versions](https://symfony.com
3434
- [ConstantOutputTask](doc/reference/tasks/constant_output_task.md)
3535
- [ConstantIterableOutputTask](doc/reference/tasks/constant_iterable_output_task.md)
3636
- [DebugTask](doc/reference/tasks/debug_task.md)
37+
- [DieTask](doc/reference/tasks/die_task.md)
3738
- [DummyTask](doc/reference/tasks/dummy_task.md)
3839
- [EventDispatcherTask](doc/reference/tasks/event_dispatcher_task.md)
3940
- Data manipulation and transformations

composer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,13 @@
8383
"symfony/yaml": "^6.3"
8484
},
8585
"require-dev": {
86-
"roave/security-advisories": "dev-latest",
87-
"phpunit/phpunit": "*",
86+
"friendsofphp/php-cs-fixer": "*",
87+
"phpstan/extension-installer": "*",
8888
"phpstan/phpstan": "*",
8989
"phpstan/phpstan-symfony": "*",
90-
"phpstan/extension-installer": "*",
90+
"phpunit/phpunit": "*",
9191
"rector/rector": "*",
92-
"symplify/easy-coding-standard": "*",
93-
"symplify/phpstan-rules": "*",
92+
"roave/security-advisories": "dev-latest",
9493
"symfony/test-pack": "^1.1"
9594
},
9695
"suggest": {

doc/reference/tasks/debug_task.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ Possible outputs
1919
----------------
2020

2121
`any`: re-output given input
22+
23+
Example
24+
----------------
25+
26+
https://github.com/cleverage/process-bundle-ui-demo/blob/main/config/packages/process/demo.debug.yaml

doc/reference/tasks/die_task.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
DieTask
2+
=========
3+
4+
Stops the process brutally
5+
6+
7+
Task reference
8+
--------------
9+
10+
* **Service**: `CleverAge\ProcessBundle\Task\Debug\DieTask`
11+
12+
Accepted inputs
13+
---------------
14+
15+
`any`
16+
17+
Possible outputs
18+
----------------
19+
20+
None
21+
22+
Example
23+
----------------
24+
25+
https://github.com/cleverage/process-bundle-ui-demo/blob/main/config/packages/process/demo.die.yaml

ecs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
SetList::DOCTRINE_ANNOTATIONS,
1919
]);
2020

21-
$ecsConfig->paths([__DIR__ . '/src']);
21+
$ecsConfig->paths([__DIR__.'/src']);
2222

2323
$ecsConfig->skip([AssignmentInConditionSniff::class]);
2424
};

rector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
$rectorConfig->importNames();
1414
$rectorConfig->importShortClasses();
1515

16-
$rectorConfig->paths([__DIR__ . '/src']);
17-
$rectorConfig->skip([__DIR__ . '/src/Resources/tests']);
16+
$rectorConfig->paths([__DIR__.'/src']);
17+
$rectorConfig->skip([__DIR__.'/src/Resources/tests']);
1818

1919
$rectorConfig->sets([
2020
SetList::TYPE_DECLARATION,

src/CleverAgeProcessBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class CleverAgeProcessBundle extends Bundle
2424
{
2525
/**
26-
* Adding compiler passes to inject services into registry
26+
* Adding compiler passes to inject services into registry.
2727
*/
2828
public function build(ContainerBuilder $container): void
2929
{

0 commit comments

Comments
 (0)