Skip to content

Commit 2a8cda4

Browse files
committed
[HttpBoot] Prepare for 2.x:
- Removed GitHub workflow: - Moved all classes to root folder; - Moved all classes to their dedicated namespace; - Removed static analysis configuration files; Signed-off-by: Oleksii Bulba <oleksii_bulba@epam.com>
1 parent 5fa9ec6 commit 2a8cda4

File tree

10 files changed

+22
-172
lines changed

10 files changed

+22
-172
lines changed

.github/workflows/.editorconfig

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.php-cs-fixer.dist.php

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
namespace Micro\Plugin\Http;
14+
namespace Micro\Plugin\HttpBoot;
1515

16-
use Micro\Framework\Kernel\Plugin\PluginDependedInterface;
16+
use Micro\Framework\BootPluginDependent\Plugin\PluginDependedInterface;
1717
use Micro\Plugin\EventEmitter\EventEmitterPlugin;
1818

1919
/**

src/Listener/ApplicationStartedListener.php renamed to Listener/ApplicationStartedListener.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
namespace Micro\Plugin\Http\Listener;
14+
namespace Micro\Plugin\HttpBoot\Listener;
1515

16-
use Micro\Component\EventEmitter\EventInterface;
17-
use Micro\Component\EventEmitter\EventListenerInterface;
18-
use Micro\Kernel\App\Business\Event\ApplicationReadyEvent;
19-
use Micro\Kernel\App\Business\Event\ApplicationReadyEventInterface;
20-
use Micro\Plugin\Http\Facade\HttpFacadeInterface;
16+
use Micro\Framework\EventEmitter\EventInterface;
17+
use Micro\Framework\EventEmitter\EventListenerInterface;
18+
use Micro\Framework\KernelApp\Business\Event\ApplicationReadyEvent;
19+
use Micro\Framework\KernelApp\Business\Event\ApplicationReadyEventInterface;
20+
use Micro\Plugin\HttpCore\Facade\HttpFacadeInterface;
2121
use Symfony\Component\HttpFoundation\Request;
2222

2323
/**
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
namespace Micro\Plugin\Http\Test\Unit;
14+
namespace Micro\Plugin\HttpBoot\Tests\Unit;
1515

1616
use Micro\Plugin\EventEmitter\EventEmitterPlugin;
17-
use Micro\Plugin\Http\HttpBootPlugin;
18-
use Micro\Plugin\Http\HttpCorePlugin;
17+
use Micro\Plugin\HttpBoot\HttpBootPlugin;
18+
use Micro\Plugin\HttpCore\HttpCorePlugin;
1919
use PHPUnit\Framework\TestCase;
2020

2121
class HttpBootPluginTest extends TestCase

tests/Unit/Listener/ApplicationStartedListenerTest.php renamed to Tests/Unit/Listener/ApplicationStartedListenerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
namespace Micro\Plugin\Http\Test\Unit\Listener;
14+
namespace Micro\Plugin\HttpBoot\Tests\Unit\Listener;
1515

16-
use Micro\Kernel\App\Business\Event\ApplicationReadyEventInterface;
17-
use Micro\Plugin\Http\Facade\HttpFacadeInterface;
18-
use Micro\Plugin\Http\Listener\ApplicationStartedListener;
16+
use Micro\Framework\KernelApp\Business\Event\ApplicationReadyEventInterface;
17+
use Micro\Plugin\HttpCore\Facade\HttpFacadeInterface;
18+
use Micro\Plugin\HttpBoot\Listener\ApplicationStartedListener;
1919
use PHPUnit\Framework\TestCase;
2020
use Symfony\Component\HttpFoundation\Response;
2121

composer.json

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,17 @@
1010
}
1111
],
1212
"require": {
13-
"micro/kernel-app": "^1.6",
14-
"micro/kernel-boot-plugin-depended": "^1.6",
15-
"micro/plugin-event-emitter": "^1.6",
16-
"micro/plugin-http-core": "^1.6"
13+
"micro/kernel-app": "^2.0",
14+
"micro/kernel-boot-plugin-depended": "^2.0",
15+
"micro/plugin-event-emitter": "^2.0",
16+
"micro/plugin-http-core": "^2.0"
1717
},
1818
"require-dev": {
19-
"ergebnis/composer-normalize": "^2.29",
20-
"friendsofphp/php-cs-fixer": "^3.13",
21-
"phpstan/phpstan": "^1.9",
22-
"phpunit/php-code-coverage": "^9.2",
23-
"phpunit/phpunit": "^9.5",
24-
"vimeo/psalm": "^5.2"
19+
"ergebnis/composer-normalize": "^2.34"
2520
},
2621
"autoload": {
2722
"psr-4": {
28-
"Micro\\Plugin\\Http\\": "src/"
29-
}
30-
},
31-
"autoload-dev": {
32-
"psr-4": {
33-
"Micro\\Plugin\\Http\\Test\\Unit\\": "tests/Unit"
23+
"Micro\\Plugin\\HttpBoot\\": "/"
3424
}
3525
},
3626
"config": {
@@ -39,23 +29,5 @@
3929
},
4030
"sort-packages": true
4131
},
42-
"scripts": {
43-
"coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text",
44-
"php-cs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --verbose --using-cache=no",
45-
"php-cs-try": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no",
46-
"phpstan": "./vendor/bin/phpstan analyze --no-progress",
47-
"phpunit": "./vendor/bin/phpunit",
48-
"psalm": "./vendor/bin/psalm --no-progress --show-info=true",
49-
"statics": [
50-
"@phpstan",
51-
"@psalm",
52-
"@php-cs-try"
53-
],
54-
"test": [
55-
"@statics",
56-
"composer validate --strict",
57-
"composer normalize",
58-
"@coverage"
59-
]
60-
}
32+
"minimum-stability": "dev"
6133
}

phpstan.neon.dist

Lines changed: 0 additions & 4 deletions
This file was deleted.

psalm.xml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)