Skip to content

Commit

Permalink
[BootDependency] Prepare for 2.x:
Browse files Browse the repository at this point in the history
- Renamed namespace \Micro\Framework\Kernel to \Micro\Framework\BootDependency;
- Moved all classes to root folder;
- Removed all static analysis configuration files;
  • Loading branch information
OleksiiBulba committed Aug 4, 2023
1 parent 3387ea0 commit ec73d01
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 252 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/.editorconfig

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/ci.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ composer.lock
test-coverage-report
phpunit.xml
.php-cs-fixer.php
phpstan.neon
phpstan.neon
coverage
31 changes: 0 additions & 31 deletions .php-cs-fixer.dist.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace Micro\Framework\Kernel\Boot;
namespace Micro\Framework\BootDependency\Boot;

use Micro\Component\DependencyInjection\Autowire\AutowireHelperFactory;
use Micro\Component\DependencyInjection\Autowire\AutowireHelperInterface;
use Micro\Component\DependencyInjection\Autowire\ContainerAutowire;
use Micro\Component\DependencyInjection\Container;
use Micro\Framework\Kernel\Plugin\DependencyProviderInterface;
use Micro\Framework\DependencyInjection\Container;
use Micro\Framework\BootDependency\Plugin\DependencyProviderInterface;
use Micro\Framework\Kernel\Plugin\PluginBootLoaderInterface;
use Psr\Container\ContainerInterface;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
* file that was distributed with this source code.
*/

namespace Micro\Framework\Kernel\Plugin;
namespace Micro\Framework\BootDependency\Plugin;

use Micro\Component\DependencyInjection\Container;
use Micro\Framework\DependencyInjection\Container;

/**
* @TODO: Remove extends for 2.0 version
*/
interface DependencyProviderInterface
{
public function provideDependencies(Container $container): void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace Micro\Framework\Kernel\Test\Unit\Boot;
namespace Micro\Framework\BootDependency\Tests\Unit\Boot;

use Micro\Component\DependencyInjection\Container;
use Micro\Framework\Kernel\Boot\DependencyProviderBootLoader;
use Micro\Framework\Kernel\Plugin\DependencyProviderInterface;
use Micro\Framework\DependencyInjection\Container;
use Micro\Framework\BootDependency\Boot\DependencyProviderBootLoader;
use Micro\Framework\BootDependency\Plugin\DependencyProviderInterface;
use PHPUnit\Framework\TestCase;

class DependencyProviderBootLoaderTest extends TestCase
Expand Down
46 changes: 10 additions & 36 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,33 @@
"name": "micro/kernel-boot-dependency",
"description": "Micro Framework: Kernel Boot loader - component to provide dependencies",
"license": "MIT",
"type": "micro-plugin",
"type": "library",
"authors": [
{
"name": "Stanislau Komar",
"email": "[email protected]"
}
],
"require": {
"micro/autowire": "^1.6",
"micro/kernel": "^1.6"
"micro/autowire": "^2.0",
"micro/kernel": "^2.0"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.29",
"friendsofphp/php-cs-fixer": "^3.13",
"phpstan/phpstan": "^1.9",
"phpunit/php-code-coverage": "^9.2",
"phpunit/phpunit": "^9.5",
"vimeo/psalm": "^5.2"
"ergebnis/composer-normalize": "^2.34"
},
"autoload": {
"psr-4": {
"Micro\\Framework\\Kernel\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Micro\\Framework\\Kernel\\Test\\Unit\\": "tests/Unit"
}
"Micro\\Framework\\BootDependency\\": "/"
},
"exclude-from-classmap": [
"/Tests/"
]
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
},
"sort-packages": true
},
"scripts": {
"coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text",
"coverage-html": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html ./test-coverage-report",
"php-cs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --verbose --using-cache=no",
"php-cs-try": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no",
"phpstan": "./vendor/bin/phpstan analyze --no-progress",
"phpunit": "./vendor/bin/phpunit",
"psalm": "./vendor/bin/psalm --no-progress --show-info=true --no-cache",
"statics": [
"@phpstan",
"@psalm",
"@php-cs-try"
],
"test": [
"@statics",
"composer validate --strict",
"composer normalize",
"@coverage"
]
}
"minimum-stability": "dev"
}
27 changes: 0 additions & 27 deletions coverage/clover.xml

This file was deleted.

64 changes: 0 additions & 64 deletions phpcs.xml

This file was deleted.

4 changes: 0 additions & 4 deletions phpstan.neon.dist

This file was deleted.

17 changes: 0 additions & 17 deletions psalm.xml

This file was deleted.

0 comments on commit ec73d01

Please sign in to comment.