Skip to content

Commit 613a43d

Browse files
committed
[BootPluginDependent] Prepare for 2.x:
- Renamed namespace \Micro\Framework\Kernel to \Micro\Framework\BootPluginDependent; - Removed GitHub workflow; - Removed static analysis configuration files;
1 parent bfb165d commit 613a43d

13 files changed

+22
-224
lines changed

.github/workflows/.editorconfig

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

.github/workflows/ci.yaml

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

.php-cs-fixer.dist.php

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

src/Boot/DependedPluginsBootLoader.php renamed to Boot/DependedPluginsBootLoader.php

Lines changed: 2 additions & 2 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\Framework\Kernel\Boot;
14+
namespace Micro\Framework\BootPluginDependent\Boot;
1515

1616
use Micro\Framework\Kernel\KernelInterface;
1717
use Micro\Framework\Kernel\Plugin\PluginBootLoaderInterface;
18-
use Micro\Framework\Kernel\Plugin\PluginDependedInterface;
18+
use Micro\Framework\BootPluginDependent\Plugin\PluginDependedInterface;
1919

2020
/**
2121
* @author Stanislau Komar <[email protected]>

src/Plugin/PluginDependedInterface.php renamed to Plugin/PluginDependedInterface.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\Framework\Kernel\Plugin;
14+
namespace Micro\Framework\BootPluginDependent\Plugin;
1515

1616
/**
1717
* @author Stanislau Komar <[email protected]>

tests/Unit/Boot/DependedPluginsBootLoaderTest.php renamed to Tests/Unit/Boot/DependedPluginsBootLoaderTest.php

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

14-
namespace Micro\Framework\Kernel\Test\Unit\Boot;
14+
namespace Micro\Framework\BootPluginDependent\Tests\Unit\Boot;
1515

16-
use Micro\Component\DependencyInjection\Container;
17-
use Micro\Framework\Kernel\Boot\DependedPluginsBootLoader;
16+
use Micro\Framework\DependencyInjection\Container;
17+
use Micro\Framework\BootPluginDependent\Boot\DependedPluginsBootLoader;
1818
use Micro\Framework\Kernel\Kernel;
1919
use Micro\Framework\Kernel\KernelInterface;
20-
use Micro\Framework\Kernel\Plugin\PluginDependedInterface;
21-
use Micro\Framework\Kernel\Test\Unit\PluginHasDepends;
20+
use Micro\Framework\BootPluginDependent\Plugin\PluginDependedInterface;
21+
use Micro\Framework\BootPluginDependent\Tests\Unit\PluginHasDepends;
2222
use PHPUnit\Framework\TestCase;
2323

2424
class DependedPluginsBootLoaderTest extends TestCase

tests/Unit/EmptyPlugin.php renamed to Tests/Unit/EmptyPlugin.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\Framework\Kernel\Test\Unit;
14+
namespace Micro\Framework\BootPluginDependent\Tests\Unit;
1515

1616
/**
1717
* @author Stanislau Komar <[email protected]>

tests/Unit/PluginHasDepends.php renamed to Tests/Unit/PluginHasDepends.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\Framework\Kernel\Test\Unit;
14+
namespace Micro\Framework\BootPluginDependent\Tests\Unit;
1515

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

1818
/**
1919
* @author Stanislau Komar <[email protected]>

tests/Unit/PluginHasEmptyDepends.php renamed to Tests/Unit/PluginHasEmptyDepends.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\Framework\Kernel\Test\Unit;
14+
namespace Micro\Framework\BootPluginDependent\Tests\Unit;
1515

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

1818
/**
1919
* @author Stanislau Komar <[email protected]>

composer.json

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,58 +2,32 @@
22
"name": "micro/kernel-boot-plugin-depended",
33
"description": "Micro Framework: Kernel Boot loader - component to provide dependencies",
44
"license": "MIT",
5-
"type": "micro-plugin",
5+
"type": "micro-component",
66
"authors": [
77
{
88
"name": "Stanislau Komar",
99
"email": "[email protected]"
1010
}
1111
],
1212
"require": {
13-
"micro/kernel": "^1.6"
13+
"micro/kernel": "^2.0"
1414
},
1515
"require-dev": {
16-
"ergebnis/composer-normalize": "^2.29",
17-
"friendsofphp/php-cs-fixer": "^3.13",
18-
"phpstan/phpstan": "^1.9",
19-
"phpunit/php-code-coverage": "^9.2",
20-
"phpunit/phpunit": "^9.5",
21-
"vimeo/psalm": "^5.2"
16+
"ergebnis/composer-normalize": "^2.29"
2217
},
2318
"autoload": {
2419
"psr-4": {
25-
"Micro\\Framework\\Kernel\\": "src/"
26-
}
27-
},
28-
"autoload-dev": {
29-
"psr-4": {
30-
"Micro\\Framework\\Kernel\\Test\\Unit\\": "tests/Unit"
31-
}
20+
"Micro\\Framework\\BootPluginDependent\\": "/"
21+
},
22+
"exclude-from-classmap": [
23+
"/Tests/"
24+
]
3225
},
3326
"config": {
3427
"allow-plugins": {
3528
"ergebnis/composer-normalize": true
3629
},
3730
"sort-packages": true
3831
},
39-
"scripts": {
40-
"coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text",
41-
"coverage-html": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html ./test-coverage-report",
42-
"php-cs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --verbose --using-cache=no",
43-
"php-cs-try": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no",
44-
"phpstan": "./vendor/bin/phpstan analyze --no-progress",
45-
"phpunit": "./vendor/bin/phpunit",
46-
"psalm": "./vendor/bin/psalm --no-progress --show-info=true --no-cache",
47-
"statics": [
48-
"@phpstan",
49-
"@psalm",
50-
"@php-cs-try"
51-
],
52-
"test": [
53-
"@statics",
54-
"composer validate --strict",
55-
"composer normalize",
56-
"@coverage"
57-
]
58-
}
32+
"minimum-stability": "dev"
5933
}

0 commit comments

Comments
 (0)