diff --git a/.github/workflows/.editorconfig b/.github/workflows/.editorconfig deleted file mode 100644 index 473df25..0000000 --- a/.github/workflows/.editorconfig +++ /dev/null @@ -1,2 +0,0 @@ -[{*.yaml,*.yml}] -indent_size = 2 \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index e54001a..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,58 +0,0 @@ -name: Plugin CI -on: - push: - branches: [ 'master' ] - pull_request: - -env: - PHP_CS_FIXER_IGNORE_ENV: 1 - XDEBUG_MODE: coverage - -jobs: - tests: - name: "Tests ${{ matrix.php-version }} deps ${{ matrix.dependency-versions }}" - runs-on: ubuntu-22.04 - - strategy: - fail-fast: false - matrix: - # normal, highest, non-dev installs - php-version: [ '8.2' ] - dependency-versions: [ 'highest' ] - include: - # testing lowest PHP version with the lowest dependencies - # - php-version: '8.2' - # dependency-versions: 'lowest' - - # testing dev versions with the highest PHP - - php-version: '8.2' - dependency-versions: 'highest' - - steps: - - name: "Checkout code" - uses: "actions/checkout@v2" - - - name: "Install PHP" - uses: "shivammathur/setup-php@v2" - with: - coverage: "none" - php-version: "${{ matrix.php-version }}" - - - name: "Composer install" - uses: "ramsey/composer-install@v2" - with: - dependency-versions: "${{ matrix.dependency-versions }}" - composer-options: "--prefer-dist --no-progress" - - - name: Run tests - run: composer run test - - - name: Coverage report - run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover coverage.xml - - - name: Upload coverage reports to Codecov - run: | - # Replace `linux` below with the appropriate OS - curl -Os https://uploader.codecov.io/latest/linux/codecov - chmod +x codecov - ./codecov -t ${CODECOV_TOKEN} \ No newline at end of file diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php deleted file mode 100644 index ded2263..0000000 --- a/.php-cs-fixer.dist.php +++ /dev/null @@ -1,30 +0,0 @@ -in(__DIR__.'/src') - ->in(__DIR__.'/tests') -; - -return (new PhpCsFixer\Config()) - ->setRules(array( - '@Symfony' => true, - '@Symfony:risky' => true, - 'protected_to_private' => false, - 'semicolon_after_instruction' => false, - 'header_comment' => [ - 'header' => << - - For the full copyright and license information, please view the LICENSE - file that was distributed with this source code. -EOF - ] - )) - ->setRiskyAllowed(true) - ->setFinder($finder); \ No newline at end of file diff --git a/src/Business/Executor/HttpExecutorLoggerAwareDecorator.php b/Business/Executor/HttpExecutorLoggerAwareDecorator.php similarity index 90% rename from src/Business/Executor/HttpExecutorLoggerAwareDecorator.php rename to Business/Executor/HttpExecutorLoggerAwareDecorator.php index f388e4e..5eea0a0 100644 --- a/src/Business/Executor/HttpExecutorLoggerAwareDecorator.php +++ b/Business/Executor/HttpExecutorLoggerAwareDecorator.php @@ -11,10 +11,11 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Executor; +namespace Micro\Plugin\HttpLogger\Business\Executor; -use Micro\Plugin\Http\Business\Logger\Formatter\LogFormatterInterface; -use Micro\Plugin\Http\Exception\HttpException; +use Micro\Plugin\HttpCore\Business\Executor\RouteExecutorInterface; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\LogFormatterInterface; +use Micro\Plugin\HttpCore\Exception\HttpException; use Psr\Log\LoggerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Executor/HttpExecutorLoggerAwareDecoratorFactory.php b/Business/Executor/HttpExecutorLoggerAwareDecoratorFactory.php similarity index 78% rename from src/Business/Executor/HttpExecutorLoggerAwareDecoratorFactory.php rename to Business/Executor/HttpExecutorLoggerAwareDecoratorFactory.php index f65dc39..d2f05c0 100644 --- a/src/Business/Executor/HttpExecutorLoggerAwareDecoratorFactory.php +++ b/Business/Executor/HttpExecutorLoggerAwareDecoratorFactory.php @@ -11,10 +11,12 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Executor; +namespace Micro\Plugin\HttpLogger\Business\Executor; -use Micro\Plugin\Http\Business\Logger\Formatter\LogFormatterFactoryInterface; -use Micro\Plugin\Http\HttpLoggerPluginConfigurationInterface; +use Micro\Plugin\HttpCore\Business\Executor\RouteExecutorFactoryInterface; +use Micro\Plugin\HttpCore\Business\Executor\RouteExecutorInterface; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\LogFormatterFactoryInterface; +use Micro\Plugin\HttpLogger\HttpLoggerPluginConfigurationInterface; use Micro\Plugin\Logger\Facade\LoggerFacadeInterface; /** diff --git a/src/Business/Logger/Formatter/Format/AbstractFormat.php b/Business/Logger/Formatter/Format/AbstractFormat.php similarity index 94% rename from src/Business/Logger/Formatter/Format/AbstractFormat.php rename to Business/Logger/Formatter/Format/AbstractFormat.php index 6158e41..1bd03bd 100644 --- a/src/Business/Logger/Formatter/Format/AbstractFormat.php +++ b/Business/Logger/Formatter/Format/AbstractFormat.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/Format/AbstractHeaderFormatter.php b/Business/Logger/Formatter/Format/AbstractHeaderFormatter.php similarity index 95% rename from src/Business/Logger/Formatter/Format/AbstractHeaderFormatter.php rename to Business/Logger/Formatter/Format/AbstractHeaderFormatter.php index a3875da..79d07de 100644 --- a/src/Business/Logger/Formatter/Format/AbstractHeaderFormatter.php +++ b/Business/Logger/Formatter/Format/AbstractHeaderFormatter.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/Format/HeadersRequestFormatter.php b/Business/Logger/Formatter/Format/HeadersRequestFormatter.php similarity index 97% rename from src/Business/Logger/Formatter/Format/HeadersRequestFormatter.php rename to Business/Logger/Formatter/Format/HeadersRequestFormatter.php index 9e2c0f7..a51a86d 100644 --- a/src/Business/Logger/Formatter/Format/HeadersRequestFormatter.php +++ b/Business/Logger/Formatter/Format/HeadersRequestFormatter.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/Format/IpFormat.php b/Business/Logger/Formatter/Format/IpFormat.php similarity index 91% rename from src/Business/Logger/Formatter/Format/IpFormat.php rename to Business/Logger/Formatter/Format/IpFormat.php index ea373a2..999cda9 100644 --- a/src/Business/Logger/Formatter/Format/IpFormat.php +++ b/Business/Logger/Formatter/Format/IpFormat.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/Format/LogFormatterConcreteInterface.php b/Business/Logger/Formatter/Format/LogFormatterConcreteInterface.php similarity index 81% rename from src/Business/Logger/Formatter/Format/LogFormatterConcreteInterface.php rename to Business/Logger/Formatter/Format/LogFormatterConcreteInterface.php index b2ee3ec..c8b0ced 100644 --- a/src/Business/Logger/Formatter/Format/LogFormatterConcreteInterface.php +++ b/Business/Logger/Formatter/Format/LogFormatterConcreteInterface.php @@ -11,9 +11,9 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format; -use Micro\Plugin\Http\Business\Logger\Formatter\LogFormatterInterface; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\LogFormatterInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/Format/MethodFormat.php b/Business/Logger/Formatter/Format/MethodFormat.php similarity index 91% rename from src/Business/Logger/Formatter/Format/MethodFormat.php rename to Business/Logger/Formatter/Format/MethodFormat.php index db11579..eda32a1 100644 --- a/src/Business/Logger/Formatter/Format/MethodFormat.php +++ b/Business/Logger/Formatter/Format/MethodFormat.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/Format/RequestBodyFormat.php b/Business/Logger/Formatter/Format/RequestBodyFormat.php similarity index 97% rename from src/Business/Logger/Formatter/Format/RequestBodyFormat.php rename to Business/Logger/Formatter/Format/RequestBodyFormat.php index e6e912c..b7e141e 100644 --- a/src/Business/Logger/Formatter/Format/RequestBodyFormat.php +++ b/Business/Logger/Formatter/Format/RequestBodyFormat.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/Format/RequestFormat.php b/Business/Logger/Formatter/Format/RequestFormat.php similarity index 91% rename from src/Business/Logger/Formatter/Format/RequestFormat.php rename to Business/Logger/Formatter/Format/RequestFormat.php index d959249..7a3667c 100644 --- a/src/Business/Logger/Formatter/Format/RequestFormat.php +++ b/Business/Logger/Formatter/Format/RequestFormat.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/Format/StatusFormat.php b/Business/Logger/Formatter/Format/StatusFormat.php similarity index 93% rename from src/Business/Logger/Formatter/Format/StatusFormat.php rename to Business/Logger/Formatter/Format/StatusFormat.php index 05f876d..8f95ab4 100644 --- a/src/Business/Logger/Formatter/Format/StatusFormat.php +++ b/Business/Logger/Formatter/Format/StatusFormat.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/Format/TimeFormat.php b/Business/Logger/Formatter/Format/TimeFormat.php similarity index 91% rename from src/Business/Logger/Formatter/Format/TimeFormat.php rename to Business/Logger/Formatter/Format/TimeFormat.php index 07f290f..d443bd2 100644 --- a/src/Business/Logger/Formatter/Format/TimeFormat.php +++ b/Business/Logger/Formatter/Format/TimeFormat.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/Format/UsernameFormat.php b/Business/Logger/Formatter/Format/UsernameFormat.php similarity index 91% rename from src/Business/Logger/Formatter/Format/UsernameFormat.php rename to Business/Logger/Formatter/Format/UsernameFormat.php index 9100d81..93cc4b2 100644 --- a/src/Business/Logger/Formatter/Format/UsernameFormat.php +++ b/Business/Logger/Formatter/Format/UsernameFormat.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/LogFormatter.php b/Business/Logger/Formatter/LogFormatter.php similarity index 87% rename from src/Business/Logger/Formatter/LogFormatter.php rename to Business/Logger/Formatter/LogFormatter.php index fcfd9fe..70f6abb 100644 --- a/src/Business/Logger/Formatter/LogFormatter.php +++ b/Business/Logger/Formatter/LogFormatter.php @@ -11,9 +11,9 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\LogFormatterConcreteInterface; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\LogFormatterConcreteInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Business/Logger/Formatter/LogFormatterFactory.php b/Business/Logger/Formatter/LogFormatterFactory.php similarity index 83% rename from src/Business/Logger/Formatter/LogFormatterFactory.php rename to Business/Logger/Formatter/LogFormatterFactory.php index ba22d2c..ac95397 100644 --- a/src/Business/Logger/Formatter/LogFormatterFactory.php +++ b/Business/Logger/Formatter/LogFormatterFactory.php @@ -11,9 +11,9 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\LogFormatterConcreteInterface; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\LogFormatterConcreteInterface; /** * @author Stanislau Komar diff --git a/src/Business/Logger/Formatter/LogFormatterFactoryInterface.php b/Business/Logger/Formatter/LogFormatterFactoryInterface.php similarity index 87% rename from src/Business/Logger/Formatter/LogFormatterFactoryInterface.php rename to Business/Logger/Formatter/LogFormatterFactoryInterface.php index 972ff1b..519ec05 100644 --- a/src/Business/Logger/Formatter/LogFormatterFactoryInterface.php +++ b/Business/Logger/Formatter/LogFormatterFactoryInterface.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter; /** * @author Stanislau Komar diff --git a/src/Business/Logger/Formatter/LogFormatterInterface.php b/Business/Logger/Formatter/LogFormatterInterface.php similarity index 90% rename from src/Business/Logger/Formatter/LogFormatterInterface.php rename to Business/Logger/Formatter/LogFormatterInterface.php index d8dfce2..e97a829 100644 --- a/src/Business/Logger/Formatter/LogFormatterInterface.php +++ b/Business/Logger/Formatter/LogFormatterInterface.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Business\Logger\Formatter; +namespace Micro\Plugin\HttpLogger\Business\Logger\Formatter; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Decorator/HttpFacadeLoggerDecorator.php b/Decorator/HttpFacadeLoggerDecorator.php similarity index 82% rename from src/Decorator/HttpFacadeLoggerDecorator.php rename to Decorator/HttpFacadeLoggerDecorator.php index cdbf5bf..7e96ec4 100644 --- a/src/Decorator/HttpFacadeLoggerDecorator.php +++ b/Decorator/HttpFacadeLoggerDecorator.php @@ -11,12 +11,12 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Decorator; +namespace Micro\Plugin\HttpLogger\Decorator; -use Micro\Plugin\Http\Business\Executor\RouteExecutorFactoryInterface; -use Micro\Plugin\Http\Business\Route\RouteBuilderInterface; -use Micro\Plugin\Http\Business\Route\RouteInterface; -use Micro\Plugin\Http\Facade\HttpFacadeInterface; +use Micro\Plugin\HttpCore\Business\Executor\RouteExecutorFactoryInterface; +use Micro\Plugin\HttpCore\Business\Route\RouteBuilderInterface; +use Micro\Plugin\HttpCore\Business\Route\RouteInterface; +use Micro\Plugin\HttpCore\Facade\HttpFacadeInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/HttpLoggerPlugin.php b/HttpLoggerPlugin.php similarity index 62% rename from src/HttpLoggerPlugin.php rename to HttpLoggerPlugin.php index 82f0fcd..412be8f 100644 --- a/src/HttpLoggerPlugin.php +++ b/HttpLoggerPlugin.php @@ -11,27 +11,28 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http; +namespace Micro\Plugin\HttpLogger; -use Micro\Component\DependencyInjection\Container; -use Micro\Framework\Kernel\Plugin\ConfigurableInterface; -use Micro\Framework\Kernel\Plugin\DependencyProviderInterface; -use Micro\Framework\Kernel\Plugin\PluginConfigurationTrait; -use Micro\Framework\Kernel\Plugin\PluginDependedInterface; -use Micro\Plugin\Http\Business\Executor\HttpExecutorLoggerAwareDecoratorFactory; -use Micro\Plugin\Http\Business\Executor\RouteExecutorFactoryInterface; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\HeadersRequestFormatter; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\IpFormat; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\MethodFormat; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\RequestBodyFormat; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\RequestFormat; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\StatusFormat; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\TimeFormat; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\UsernameFormat; -use Micro\Plugin\Http\Business\Logger\Formatter\LogFormatterFactory; -use Micro\Plugin\Http\Business\Logger\Formatter\LogFormatterFactoryInterface; -use Micro\Plugin\Http\Decorator\HttpFacadeLoggerDecorator; -use Micro\Plugin\Http\Facade\HttpFacadeInterface; +use Micro\Framework\DependencyInjection\Container; +use Micro\Framework\BootConfiguration\Plugin\ConfigurableInterface; +use Micro\Framework\BootDependency\Plugin\DependencyProviderInterface; +use Micro\Framework\BootConfiguration\Plugin\PluginConfigurationTrait; +use Micro\Framework\BootPluginDependent\Plugin\PluginDependedInterface; +use Micro\Plugin\HttpCore\Business\Executor\RouteExecutorFactoryInterface; +use Micro\Plugin\HttpCore\Facade\HttpFacadeInterface; +use Micro\Plugin\HttpCore\HttpCorePlugin; +use Micro\Plugin\HttpLogger\Business\Executor\HttpExecutorLoggerAwareDecoratorFactory; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\HeadersRequestFormatter; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\IpFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\MethodFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\RequestBodyFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\RequestFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\StatusFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\TimeFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\UsernameFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\LogFormatterFactory; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\LogFormatterFactoryInterface; +use Micro\Plugin\HttpLogger\Decorator\HttpFacadeLoggerDecorator; use Micro\Plugin\Logger\Facade\LoggerFacadeInterface; use Micro\Plugin\Logger\LoggerPlugin; diff --git a/src/HttpLoggerPluginConfiguration.php b/HttpLoggerPluginConfiguration.php similarity index 95% rename from src/HttpLoggerPluginConfiguration.php rename to HttpLoggerPluginConfiguration.php index 96be5b4..fdc6b72 100644 --- a/src/HttpLoggerPluginConfiguration.php +++ b/HttpLoggerPluginConfiguration.php @@ -11,9 +11,9 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http; +namespace Micro\Plugin\HttpLogger; -use Micro\Framework\Kernel\Configuration\PluginConfiguration; +use Micro\Framework\BootConfiguration\Configuration\PluginConfiguration; use Micro\Plugin\Logger\LoggerPluginConfiguration; /** diff --git a/src/HttpLoggerPluginConfigurationInterface.php b/HttpLoggerPluginConfigurationInterface.php similarity index 95% rename from src/HttpLoggerPluginConfigurationInterface.php rename to HttpLoggerPluginConfigurationInterface.php index 1cb00e2..2ecd942 100644 --- a/src/HttpLoggerPluginConfigurationInterface.php +++ b/HttpLoggerPluginConfigurationInterface.php @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http; +namespace Micro\Plugin\HttpLogger; /** * @author Stanislau Komar diff --git a/tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorFactoryTest.php b/Tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorFactoryTest.php similarity index 67% rename from tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorFactoryTest.php rename to Tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorFactoryTest.php index 93d9912..a3448e0 100644 --- a/tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorFactoryTest.php +++ b/Tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorFactoryTest.php @@ -9,13 +9,13 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Executor; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Executor; -use Micro\Plugin\Http\Business\Executor\HttpExecutorLoggerAwareDecoratorFactory; -use Micro\Plugin\Http\Business\Executor\RouteExecutorInterface; -use Micro\Plugin\Http\Business\Logger\Formatter\LogFormatterFactoryInterface; -use Micro\Plugin\Http\Facade\HttpFacadeInterface; -use Micro\Plugin\Http\HttpLoggerPluginConfigurationInterface; +use Micro\Plugin\HttpCore\Business\Executor\RouteExecutorInterface; +use Micro\Plugin\HttpCore\Facade\HttpFacadeInterface; +use Micro\Plugin\HttpLogger\Business\Executor\HttpExecutorLoggerAwareDecoratorFactory; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\LogFormatterFactoryInterface; +use Micro\Plugin\HttpLogger\HttpLoggerPluginConfigurationInterface; use Micro\Plugin\Logger\Facade\LoggerFacadeInterface; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorTest.php b/Tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorTest.php similarity index 87% rename from tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorTest.php rename to Tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorTest.php index 3ac4a1b..9d212b4 100644 --- a/tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorTest.php +++ b/Tests/Unit/Business/Executor/HttpExecutorLoggerAwareDecoratorTest.php @@ -9,12 +9,12 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Executor; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Executor; -use Micro\Plugin\Http\Business\Executor\HttpExecutorLoggerAwareDecorator; -use Micro\Plugin\Http\Business\Logger\Formatter\LogFormatterInterface; -use Micro\Plugin\Http\Exception\HttpException; -use Micro\Plugin\Http\Facade\HttpFacadeInterface; +use Micro\Plugin\HttpCore\Exception\HttpException; +use Micro\Plugin\HttpCore\Facade\HttpFacadeInterface; +use Micro\Plugin\HttpLogger\Business\Executor\HttpExecutorLoggerAwareDecorator; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\LogFormatterInterface; use PHPUnit\Framework\TestCase; use Psr\Log\LoggerInterface; use Symfony\Component\HttpFoundation\Request; diff --git a/tests/Unit/Business/Logger/Formatter/Format/AbstractFormatTest.php b/Tests/Unit/Business/Logger/Formatter/Format/AbstractFormatTest.php similarity index 91% rename from tests/Unit/Business/Logger/Formatter/Format/AbstractFormatTest.php rename to Tests/Unit/Business/Logger/Formatter/Format/AbstractFormatTest.php index d0c4a65..a8f1e61 100644 --- a/tests/Unit/Business/Logger/Formatter/Format/AbstractFormatTest.php +++ b/Tests/Unit/Business/Logger/Formatter/Format/AbstractFormatTest.php @@ -11,10 +11,10 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Logger\Formatter\Format; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\LogFormatterConcreteInterface; -use Micro\Plugin\Http\Exception\HttpException; +use Micro\Plugin\HttpCore\Exception\HttpException; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\LogFormatterConcreteInterface; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/tests/Unit/Business/Logger/Formatter/Format/HeadersRequestFormatterTest.php b/Tests/Unit/Business/Logger/Formatter/Format/HeadersRequestFormatterTest.php similarity index 91% rename from tests/Unit/Business/Logger/Formatter/Format/HeadersRequestFormatterTest.php rename to Tests/Unit/Business/Logger/Formatter/Format/HeadersRequestFormatterTest.php index 36ae04f..0fcf71d 100644 --- a/tests/Unit/Business/Logger/Formatter/Format/HeadersRequestFormatterTest.php +++ b/Tests/Unit/Business/Logger/Formatter/Format/HeadersRequestFormatterTest.php @@ -11,10 +11,10 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Logger\Formatter\Format; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\HeadersRequestFormatter; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\LogFormatterConcreteInterface; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\HeadersRequestFormatter; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\LogFormatterConcreteInterface; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/tests/Unit/Business/Logger/Formatter/Format/IpFormatTest.php b/Tests/Unit/Business/Logger/Formatter/Format/IpFormatTest.php similarity index 90% rename from tests/Unit/Business/Logger/Formatter/Format/IpFormatTest.php rename to Tests/Unit/Business/Logger/Formatter/Format/IpFormatTest.php index 6b174cf..5abb978 100644 --- a/tests/Unit/Business/Logger/Formatter/Format/IpFormatTest.php +++ b/Tests/Unit/Business/Logger/Formatter/Format/IpFormatTest.php @@ -9,10 +9,10 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Logger\Formatter\Format; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\IpFormat; -use Micro\Plugin\Http\Exception\HttpException; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\IpFormat; +use Micro\Plugin\HttpCore\Exception\HttpException; use Symfony\Component\HttpFoundation\Request; class IpFormatTest extends AbstractFormatTest diff --git a/tests/Unit/Business/Logger/Formatter/Format/MethodFormatTest.php b/Tests/Unit/Business/Logger/Formatter/Format/MethodFormatTest.php similarity index 78% rename from tests/Unit/Business/Logger/Formatter/Format/MethodFormatTest.php rename to Tests/Unit/Business/Logger/Formatter/Format/MethodFormatTest.php index 3920e01..fc89ce8 100644 --- a/tests/Unit/Business/Logger/Formatter/Format/MethodFormatTest.php +++ b/Tests/Unit/Business/Logger/Formatter/Format/MethodFormatTest.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Logger\Formatter\Format; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\MethodFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\MethodFormat; class MethodFormatTest extends AbstractFormatTest { diff --git a/tests/Unit/Business/Logger/Formatter/Format/RequestBodyFormatTest.php b/Tests/Unit/Business/Logger/Formatter/Format/RequestBodyFormatTest.php similarity index 95% rename from tests/Unit/Business/Logger/Formatter/Format/RequestBodyFormatTest.php rename to Tests/Unit/Business/Logger/Formatter/Format/RequestBodyFormatTest.php index f506b7b..e0a18c2 100644 --- a/tests/Unit/Business/Logger/Formatter/Format/RequestBodyFormatTest.php +++ b/Tests/Unit/Business/Logger/Formatter/Format/RequestBodyFormatTest.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Logger\Formatter\Format; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\RequestBodyFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\RequestBodyFormat; use Symfony\Component\HttpFoundation\Request; class RequestBodyFormatTest extends AbstractFormatTest diff --git a/tests/Unit/Business/Logger/Formatter/Format/RequestFormatTest.php b/Tests/Unit/Business/Logger/Formatter/Format/RequestFormatTest.php similarity index 79% rename from tests/Unit/Business/Logger/Formatter/Format/RequestFormatTest.php rename to Tests/Unit/Business/Logger/Formatter/Format/RequestFormatTest.php index 880ff81..2fb7e1b 100644 --- a/tests/Unit/Business/Logger/Formatter/Format/RequestFormatTest.php +++ b/Tests/Unit/Business/Logger/Formatter/Format/RequestFormatTest.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Logger\Formatter\Format; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\RequestFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\RequestFormat; class RequestFormatTest extends AbstractFormatTest { diff --git a/tests/Unit/Business/Logger/Formatter/Format/StatusFormatTest.php b/Tests/Unit/Business/Logger/Formatter/Format/StatusFormatTest.php similarity index 81% rename from tests/Unit/Business/Logger/Formatter/Format/StatusFormatTest.php rename to Tests/Unit/Business/Logger/Formatter/Format/StatusFormatTest.php index cd8b37e..6408204 100644 --- a/tests/Unit/Business/Logger/Formatter/Format/StatusFormatTest.php +++ b/Tests/Unit/Business/Logger/Formatter/Format/StatusFormatTest.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Logger\Formatter\Format; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\StatusFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\StatusFormat; class StatusFormatTest extends AbstractFormatTest { diff --git a/tests/Unit/Business/Logger/Formatter/Format/TimeFormatTest.php b/Tests/Unit/Business/Logger/Formatter/Format/TimeFormatTest.php similarity index 83% rename from tests/Unit/Business/Logger/Formatter/Format/TimeFormatTest.php rename to Tests/Unit/Business/Logger/Formatter/Format/TimeFormatTest.php index 1f36b51..e42487d 100644 --- a/tests/Unit/Business/Logger/Formatter/Format/TimeFormatTest.php +++ b/Tests/Unit/Business/Logger/Formatter/Format/TimeFormatTest.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Logger\Formatter\Format; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\TimeFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\TimeFormat; class TimeFormatTest extends AbstractFormatTest { diff --git a/tests/Unit/Business/Logger/Formatter/Format/UsernameFormatTest.php b/Tests/Unit/Business/Logger/Formatter/Format/UsernameFormatTest.php similarity index 79% rename from tests/Unit/Business/Logger/Formatter/Format/UsernameFormatTest.php rename to Tests/Unit/Business/Logger/Formatter/Format/UsernameFormatTest.php index 4825626..c961d47 100644 --- a/tests/Unit/Business/Logger/Formatter/Format/UsernameFormatTest.php +++ b/Tests/Unit/Business/Logger/Formatter/Format/UsernameFormatTest.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Logger\Formatter\Format; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Logger\Formatter\Format; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\UsernameFormat; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\UsernameFormat; class UsernameFormatTest extends AbstractFormatTest { diff --git a/tests/Unit/Business/Logger/Formatter/LogFormatterFactoryTest.php b/Tests/Unit/Business/Logger/Formatter/LogFormatterFactoryTest.php similarity index 65% rename from tests/Unit/Business/Logger/Formatter/LogFormatterFactoryTest.php rename to Tests/Unit/Business/Logger/Formatter/LogFormatterFactoryTest.php index c3da618..a03f035 100644 --- a/tests/Unit/Business/Logger/Formatter/LogFormatterFactoryTest.php +++ b/Tests/Unit/Business/Logger/Formatter/LogFormatterFactoryTest.php @@ -9,11 +9,11 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Logger\Formatter; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Logger\Formatter; -use Micro\Plugin\Http\Business\Logger\Formatter\Format\LogFormatterConcreteInterface; -use Micro\Plugin\Http\Business\Logger\Formatter\LogFormatterFactory; -use Micro\Plugin\Http\Business\Logger\Formatter\LogFormatterInterface; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\Format\LogFormatterConcreteInterface; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\LogFormatterFactory; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\LogFormatterInterface; use PHPUnit\Framework\TestCase; class LogFormatterFactoryTest extends TestCase diff --git a/tests/Unit/Business/Logger/Formatter/LogFormatterTest.php b/Tests/Unit/Business/Logger/Formatter/LogFormatterTest.php similarity index 84% rename from tests/Unit/Business/Logger/Formatter/LogFormatterTest.php rename to Tests/Unit/Business/Logger/Formatter/LogFormatterTest.php index 9f44d7b..76f3fd3 100644 --- a/tests/Unit/Business/Logger/Formatter/LogFormatterTest.php +++ b/Tests/Unit/Business/Logger/Formatter/LogFormatterTest.php @@ -9,10 +9,10 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Business\Logger\Formatter; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Business\Logger\Formatter; -use Micro\Plugin\Http\Business\Logger\Formatter\LogFormatter; -use Micro\Plugin\Http\Business\Logger\Formatter\LogFormatterInterface; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\LogFormatter; +use Micro\Plugin\HttpLogger\Business\Logger\Formatter\LogFormatterInterface; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/tests/Unit/Decorator/HttpFacadeLoggerDecoratorTest.php b/Tests/Unit/Decorator/HttpFacadeLoggerDecoratorTest.php similarity index 81% rename from tests/Unit/Decorator/HttpFacadeLoggerDecoratorTest.php rename to Tests/Unit/Decorator/HttpFacadeLoggerDecoratorTest.php index fbb1cbd..ccc6110 100644 --- a/tests/Unit/Decorator/HttpFacadeLoggerDecoratorTest.php +++ b/Tests/Unit/Decorator/HttpFacadeLoggerDecoratorTest.php @@ -9,13 +9,13 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit\Decorator; +namespace Micro\Plugin\HttpLogger\Tests\Unit\Decorator; -use Micro\Plugin\Http\Business\Executor\RouteExecutorFactoryInterface; -use Micro\Plugin\Http\Business\Route\RouteBuilderInterface; -use Micro\Plugin\Http\Business\Route\RouteInterface; -use Micro\Plugin\Http\Decorator\HttpFacadeLoggerDecorator; -use Micro\Plugin\Http\Facade\HttpFacadeInterface; +use Micro\Plugin\HttpCore\Business\Executor\RouteExecutorFactoryInterface; +use Micro\Plugin\HttpCore\Business\Route\RouteBuilderInterface; +use Micro\Plugin\HttpCore\Business\Route\RouteInterface; +use Micro\Plugin\HttpCore\Facade\HttpFacadeInterface; +use Micro\Plugin\HttpLogger\Decorator\HttpFacadeLoggerDecorator; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/tests/Unit/HttpLoggerPluginConfigurationTest.php b/Tests/Unit/HttpLoggerPluginConfigurationTest.php similarity index 92% rename from tests/Unit/HttpLoggerPluginConfigurationTest.php rename to Tests/Unit/HttpLoggerPluginConfigurationTest.php index 6f71773..a00e1a6 100644 --- a/tests/Unit/HttpLoggerPluginConfigurationTest.php +++ b/Tests/Unit/HttpLoggerPluginConfigurationTest.php @@ -9,11 +9,11 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit; +namespace Micro\Plugin\HttpLogger\Tests\Unit; -use Micro\Framework\Kernel\Configuration\ApplicationConfigurationInterface; -use Micro\Plugin\Http\HttpLoggerPluginConfiguration; -use Micro\Plugin\Http\HttpLoggerPluginConfigurationInterface; +use Micro\Framework\BootConfiguration\Configuration\ApplicationConfigurationInterface; +use Micro\Plugin\HttpLogger\HttpLoggerPluginConfiguration; +use Micro\Plugin\HttpLogger\HttpLoggerPluginConfigurationInterface; use Micro\Plugin\Logger\LoggerPluginConfiguration; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/HttpLoggerPluginTest.php b/Tests/Unit/HttpLoggerPluginTest.php similarity index 76% rename from tests/Unit/HttpLoggerPluginTest.php rename to Tests/Unit/HttpLoggerPluginTest.php index 7af692b..946f5c2 100644 --- a/tests/Unit/HttpLoggerPluginTest.php +++ b/Tests/Unit/HttpLoggerPluginTest.php @@ -9,14 +9,14 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit; - -use Micro\Component\DependencyInjection\Container; -use Micro\Framework\Kernel\Configuration\DefaultApplicationConfiguration; -use Micro\Framework\Kernel\Plugin\DependencyProviderInterface; -use Micro\Plugin\Http\HttpCorePlugin; -use Micro\Plugin\Http\HttpLoggerPlugin; -use Micro\Plugin\Http\HttpLoggerPluginConfiguration; +namespace Micro\Plugin\HttpLogger\Tests\Unit; + +use Micro\Framework\DependencyInjection\Container; +use Micro\Framework\BootConfiguration\Configuration\DefaultApplicationConfiguration; +use Micro\Framework\BootDependency\Plugin\DependencyProviderInterface; +use Micro\Plugin\HttpCore\HttpCorePlugin; +use Micro\Plugin\HttpLogger\HttpLoggerPlugin; +use Micro\Plugin\HttpLogger\HttpLoggerPluginConfiguration; use Micro\Plugin\Logger\LoggerPlugin; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/TestHtpLoggerPlugin.php b/Tests/Unit/TestHtpLoggerPlugin.php similarity index 67% rename from tests/Unit/TestHtpLoggerPlugin.php rename to Tests/Unit/TestHtpLoggerPlugin.php index 342db8e..c9c6e29 100644 --- a/tests/Unit/TestHtpLoggerPlugin.php +++ b/Tests/Unit/TestHtpLoggerPlugin.php @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace Micro\Plugin\Http\Test\Unit; +namespace Micro\Plugin\HttpLogger\Tests\Unit; -use Micro\Component\DependencyInjection\Container; -use Micro\Framework\Kernel\Plugin\DependencyProviderInterface; -use Micro\Framework\Kernel\Plugin\PluginConfigurationTrait; -use Micro\Framework\Kernel\Plugin\PluginDependedInterface; -use Micro\Plugin\Http\HttpCorePlugin; +use Micro\Framework\DependencyInjection\Container; +use Micro\Framework\BootDependency\Plugin\DependencyProviderInterface; +use Micro\Framework\BootConfiguration\Plugin\PluginConfigurationTrait; +use Micro\Framework\BootPluginDependent\Plugin\PluginDependedInterface; +use Micro\Plugin\HttpCore\HttpCorePlugin; use Micro\Plugin\Logger\LoggerPlugin; /** diff --git a/composer.json b/composer.json index 3c48248..04046fb 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "micro/plugin-http-logger", - "description": "Micro Framework: ROuter actions logger", + "description": "Micro Framework: Router actions logger", "license": "MIT", "type": "micro-plugin", "authors": [ @@ -10,50 +10,19 @@ } ], "require": { - "micro/plugin-http-core": "^1.6", - "micro/plugin-logger-core": "^1.6" - }, - "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" + "micro/plugin-http-core": "^2.0", + "micro/plugin-logger-core": "^2.0" }, + "minimum-stability": "dev", "autoload": { "psr-4": { - "Micro\\Plugin\\Http\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "Micro\\Plugin\\Http\\Test\\Unit\\": "tests/Unit" - } + "Micro\\Plugin\\HttpLogger\\": "/" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "config": { - "allow-plugins": { - "ergebnis/composer-normalize": true - }, "sort-packages": true - }, - "scripts": { - "coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text", - "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", - "statics": [ - "@phpstan", - "@psalm", - "@php-cs-try" - ], - "test": [ - "@statics", - "composer validate --strict", - "composer normalize", - "@coverage" - ] } } diff --git a/phpstan.neon.dist b/phpstan.neon.dist deleted file mode 100644 index 18d77f7..0000000 --- a/phpstan.neon.dist +++ /dev/null @@ -1,4 +0,0 @@ -parameters: - level: 7 - paths: - - src \ No newline at end of file diff --git a/psalm.xml b/psalm.xml deleted file mode 100644 index 7de542e..0000000 --- a/psalm.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file