Skip to content

Commit

Permalink
[PluginHttpLogger] Prepare for 2.x:
Browse files Browse the repository at this point in the history
- Removed GitHub workflow;
- Removed static analysis configuration files;
- Moved all classes to root folder;
- Renamed namespace to Micro\Plugin\HttpLogger;
  • Loading branch information
OleksiiBulba committed Aug 4, 2023
1 parent bd91f9b commit 0eb96d9
Show file tree
Hide file tree
Showing 44 changed files with 129 additions and 282 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.

30 changes: 0 additions & 30 deletions .php-cs-fixer.dist.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
41 changes: 21 additions & 20 deletions src/HttpLoggerPlugin.php → HttpLoggerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

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

namespace Micro\Plugin\Http;
namespace Micro\Plugin\HttpLogger;

/**
* @author Stanislau Komar <[email protected]>
Expand Down
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\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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 0eb96d9

Please sign in to comment.