Skip to content

Commit a720c2b

Browse files
committed
[PluginHttpRoadrunner] Prepare for 2.x:
- Moved all classes to root folder; - Removed psalm, php-cs-fixer; - Reorganized composer.json file;
1 parent ea6e5c7 commit a720c2b

10 files changed

+52
-151
lines changed

.php-cs-fixer.dist.php

Lines changed: 0 additions & 30 deletions
This file was deleted.
File renamed without changes.

composer.json

Lines changed: 29 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,32 @@
11
{
2-
"name": "micro/plugin-http-roadrunner",
3-
"description": "Micro Framework: HTTP Roadrunner adapter",
4-
"license": "MIT",
5-
"type": "micro-plugin",
6-
"authors": [
7-
{
8-
"name": "Stanislau Komar",
9-
"email": "kost@micro-php.net"
10-
}
11-
],
12-
"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",
17-
"nyholm/psr7": "^1.8",
18-
"spiral/roadrunner": "^2.0",
19-
"symfony/psr-http-message-bridge": "^2.3"
20-
},
21-
"require-dev": {
22-
"ergebnis/composer-normalize": "^2.29",
23-
"friendsofphp/php-cs-fixer": "^3.13",
24-
"phpstan/phpstan": "^1.9",
25-
"phpunit/php-code-coverage": "^9.2",
26-
"phpunit/phpunit": "^9.5",
27-
"vimeo/psalm": "^5.2"
28-
},
29-
"autoload": {
30-
"psr-4": {
31-
"Micro\\Plugin\\Http\\": "src/"
32-
}
33-
},
34-
"autoload-dev": {
35-
"psr-4": {
36-
"Micro\\Plugin\\Http\\Test\\Unit\\": "tests/Unit"
37-
}
38-
},
39-
"config": {
40-
"allow-plugins": {
41-
"ergebnis/composer-normalize": true
42-
},
43-
"sort-packages": true
44-
},
45-
"scripts": {
46-
"coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text",
47-
"phpcs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --verbose --using-cache=no",
48-
"phpcs-try": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no",
49-
"phpstan": "./vendor/bin/phpstan analyze --no-progress",
50-
"phpunit": "./vendor/bin/phpunit",
51-
"psalm": "./vendor/bin/psalm --no-progress --show-info=true",
52-
"statics": [
53-
"@phpstan",
54-
"@psalm",
55-
"@phpcs-try"
2+
"name": "micro/plugin-http-roadrunner",
3+
"description": "Micro Framework: HTTP Roadrunner adapter",
4+
"license": "MIT",
5+
"type": "micro-plugin",
6+
"authors": [
7+
{
8+
"name": "Stanislau Komar",
9+
"email": "kost@micro-php.net"
10+
}
5611
],
57-
"test": [
58-
"@statics",
59-
"composer validate --strict",
60-
"composer normalize",
61-
"@coverage"
62-
]
63-
}
12+
"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",
17+
"nyholm/psr7": "^1.8",
18+
"spiral/roadrunner": "^2.0",
19+
"symfony/psr-http-message-bridge": "^2.3"
20+
},
21+
"autoload": {
22+
"psr-4": {
23+
"Micro\\Plugin\\HttpRoadrunner\\": "/"
24+
},
25+
"exclude-from-classmap": [
26+
"/Tests/"
27+
]
28+
},
29+
"config": {
30+
"sort-packages": true
31+
}
6432
}

psalm.xml

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

src/Facade/HttpRoadrunnerFacade.php

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\Facade;
14+
namespace Micro\Plugin\HttpRoadrunner\Facade;
1515

16-
use Micro\Plugin\Http\HttpRoadrunnerPluginConfigurationInterface;
16+
use Micro\Plugin\HttpRoadrunner\HttpRoadrunnerPluginConfigurationInterface;
1717

1818
final readonly class HttpRoadrunnerFacade implements HttpRoadrunnerFacadeInterface
1919
{

src/Facade/HttpRoadrunnerFacadeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
namespace Micro\Plugin\Http\Facade;
14+
namespace Micro\Plugin\HttpRoadrunner\Facade;
1515

1616
interface HttpRoadrunnerFacadeInterface
1717
{

src/HttpRoadrunnerPlugin.php

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

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

16-
use Micro\Component\DependencyInjection\Container;
17-
use Micro\Framework\Kernel\Plugin\ConfigurableInterface;
18-
use Micro\Framework\Kernel\Plugin\DependencyProviderInterface;
19-
use Micro\Framework\Kernel\Plugin\PluginConfigurationTrait;
20-
use Micro\Framework\Kernel\Plugin\PluginDependedInterface;
16+
use Micro\Framework\BootConfiguration\Plugin\ConfigurableInterface;
17+
use Micro\Framework\BootConfiguration\Plugin\PluginConfigurationTrait;
18+
use Micro\Framework\BootDependency\Plugin\DependencyProviderInterface;
19+
use Micro\Framework\BootPluginDependent\Plugin\PluginDependedInterface;
20+
use Micro\Framework\DependencyInjection\Container;
2121
use Micro\Plugin\EventEmitter\EventEmitterPlugin;
22-
use Micro\Plugin\Http\Facade\HttpRoadrunnerFacade;
23-
use Micro\Plugin\Http\Facade\HttpRoadrunnerFacadeInterface;
22+
use Micro\Plugin\HttpCore\HttpCorePlugin;
23+
use Micro\Plugin\HttpRoadrunner\Facade\HttpRoadrunnerFacade;
24+
use Micro\Plugin\HttpRoadrunner\Facade\HttpRoadrunnerFacadeInterface;
2425

2526
/**
2627
* @method HttpRoadrunnerPluginConfigurationInterface configuration()

src/HttpRoadrunnerPluginConfiguration.php

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

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

16-
use Micro\Framework\Kernel\Configuration\PluginConfiguration;
16+
17+
use Micro\Framework\BootConfiguration\Configuration\PluginConfiguration;
1718

1819
final class HttpRoadrunnerPluginConfiguration extends PluginConfiguration implements HttpRoadrunnerPluginConfigurationInterface
1920
{

src/HttpRoadrunnerPluginConfigurationInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* file that was distributed with this source code.
1212
*/
1313

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

1616
interface HttpRoadrunnerPluginConfigurationInterface
1717
{

src/Listener/ApplicationRoadrunnerStartedListener.php

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

14-
namespace Micro\Plugin\Http\Listener;
14+
namespace Micro\Plugin\HttpRoadrunner\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;
21-
use Micro\Plugin\Http\Facade\HttpRoadrunnerFacadeInterface;
16+
use Micro\Framework\EventEmitter\EventInterface;
17+
use Micro\Framework\EventEmitter\EventListenerInterface;
18+
use Micro\Framework\KernelApp\Business\Event\ApplicationReadyEventInterface;
19+
use Micro\Plugin\HttpCore\Facade\HttpFacadeInterface;
20+
use Micro\Plugin\HttpRoadrunner\Facade\HttpRoadrunnerFacadeInterface;
2221
use Nyholm\Psr7\Factory\Psr17Factory;
2322
use Spiral\RoadRunner;
2423
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
@@ -33,7 +32,7 @@ public function __construct(
3332
}
3433

3534
/**
36-
* @param ApplicationReadyEvent $event
35+
* @param ApplicationReadyEventInterface $event
3736
*
3837
* @psalm-suppress MoreSpecificImplementedParamType
3938
*

0 commit comments

Comments
 (0)