Skip to content

Commit

Permalink
[HttpCore] Prepare for 2.x:
Browse files Browse the repository at this point in the history
- Moved all classes to root folder;
- Renamed namespace to Micro\Plugin\HttpCore;
- Removed GitHub workflow;
- Removed static analysis configuration files;
  • Loading branch information
OleksiiBulba committed Aug 4, 2023
1 parent 19ec43f commit 0120116
Show file tree
Hide file tree
Showing 94 changed files with 298 additions and 464 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/.editorconfig

This file was deleted.

48 changes: 0 additions & 48 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,14 +11,14 @@
* file that was distributed with this source code.
*/

namespace Micro\Plugin\Http\Business\Executor;
namespace Micro\Plugin\HttpCore\Business\Executor;

use Micro\Component\DependencyInjection\ContainerRegistryInterface;
use Micro\Plugin\Http\Business\Matcher\UrlMatcherInterface;
use Micro\Plugin\Http\Business\Response\Callback\ResponseCallbackFactoryInterface;
use Micro\Plugin\Http\Business\Response\Transformer\ResponseTransformerFactoryInterface;
use Micro\Plugin\Http\Exception\HttpException;
use Micro\Plugin\Http\Exception\HttpInternalServerException;
use Micro\Framework\DependencyInjection\ContainerRegistryInterface;
use Micro\Plugin\HttpCore\Business\Matcher\UrlMatcherInterface;
use Micro\Plugin\HttpCore\Business\Response\Callback\ResponseCallbackFactoryInterface;
use Micro\Plugin\HttpCore\Business\Response\Transformer\ResponseTransformerFactoryInterface;
use Micro\Plugin\HttpCore\Exception\HttpException;
use Micro\Plugin\HttpCore\Exception\HttpInternalServerException;
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\Business\Executor;
namespace Micro\Plugin\HttpCore\Business\Executor;

use Micro\Component\DependencyInjection\ContainerRegistryInterface;
use Micro\Plugin\Http\Business\Matcher\UrlMatcherFactoryInterface;
use Micro\Plugin\Http\Business\Response\Callback\ResponseCallbackFactoryInterface;
use Micro\Plugin\Http\Business\Response\Transformer\ResponseTransformerFactoryInterface;
use Micro\Framework\DependencyInjection\ContainerRegistryInterface;
use Micro\Plugin\HttpCore\Business\Matcher\UrlMatcherFactoryInterface;
use Micro\Plugin\HttpCore\Business\Response\Callback\ResponseCallbackFactoryInterface;
use Micro\Plugin\HttpCore\Business\Response\Transformer\ResponseTransformerFactoryInterface;

/**
* @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\Executor;
namespace Micro\Plugin\HttpCore\Business\Executor;

/**
* @author Stanislau Komar <[email protected]>
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\Executor;
namespace Micro\Plugin\HttpCore\Business\Executor;

use Micro\Plugin\Http\Exception\HttpException;
use Micro\Plugin\HttpCore\Exception\HttpException;
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\Generator;
namespace Micro\Plugin\HttpCore\Business\Generator;

use Micro\Plugin\Http\Business\Route\RouteCollectionInterface;
use Micro\Plugin\HttpCore\Business\Route\RouteCollectionInterface;

/**
* @author Stanislau Komar <[email protected]>
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\Generator;
namespace Micro\Plugin\HttpCore\Business\Generator;

use Micro\Plugin\Http\Business\Route\RouteCollectionFactoryInterface;
use Micro\Plugin\HttpCore\Business\Route\RouteCollectionFactoryInterface;

/**
* @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\Generator;
namespace Micro\Plugin\HttpCore\Business\Generator;

/**
* @author Stanislau Komar <[email protected]>
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\Generator;
namespace Micro\Plugin\HttpCore\Business\Generator;

use Micro\Plugin\Http\Exception\RouteNotFoundException;
use Micro\Plugin\HttpCore\Exception\RouteNotFoundException;

/**
* @author Stanislau Komar <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
* file that was distributed with this source code.
*/

namespace Micro\Plugin\Http\Business\Locator;
namespace Micro\Plugin\HttpCore\Business\Locator;

use Micro\Framework\Kernel\KernelInterface;
use Micro\Plugin\Http\Configuration\HttpCorePluginConfigurationInterface;
use Micro\Plugin\Http\Plugin\HttpRouteLocatorPluginInterface;
use Micro\Plugin\HttpCore\Configuration\HttpCorePluginConfigurationInterface;
use Micro\Plugin\HttpCore\Plugin\HttpRouteLocatorPluginInterface;

/**
* @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\Locator;
namespace Micro\Plugin\HttpCore\Business\Locator;

/**
* @author Stanislau Komar <[email protected]>
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\Locator;
namespace Micro\Plugin\HttpCore\Business\Locator;

use Micro\Plugin\Http\Business\Route\RouteInterface;
use Micro\Plugin\HttpCore\Business\Route\RouteInterface;

/**
* @author Stanislau Komar <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,17 @@
* file that was distributed with this source code.
*/

namespace Micro\Plugin\Http\Business\Matcher\Route\Matchers;
namespace Micro\Plugin\HttpCore\Business\Matcher\Route\Matchers;

use Micro\Plugin\Http\Business\Matcher\Route\RouteMatcherInterface;
use Micro\Plugin\Http\Business\Route\RouteInterface;
use Micro\Plugin\HttpCore\Business\Matcher\Route\RouteMatcherInterface;
use Micro\Plugin\HttpCore\Business\Route\RouteInterface;
use Symfony\Component\HttpFoundation\Request;

/**
* @author Stanislau Komar <[email protected]>
*/
class MethodMatcher implements RouteMatcherInterface
{
/**
* {@inheritDoc}
*/
public function match(RouteInterface $route, Request $request): bool
{
return \in_array(mb_strtoupper($request->getMethod()), $route->getMethods());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,17 @@
* file that was distributed with this source code.
*/

namespace Micro\Plugin\Http\Business\Matcher\Route\Matchers;
namespace Micro\Plugin\HttpCore\Business\Matcher\Route\Matchers;

use Micro\Plugin\Http\Business\Matcher\Route\RouteMatcherInterface;
use Micro\Plugin\Http\Business\Route\RouteInterface;
use Micro\Plugin\HttpCore\Business\Matcher\Route\RouteMatcherInterface;
use Micro\Plugin\HttpCore\Business\Route\RouteInterface;
use Symfony\Component\HttpFoundation\Request;

/**
* @author Stanislau Komar <[email protected]>
*/
class UriMatcher implements RouteMatcherInterface
{
/**
* {@inheritDoc}
*/
public function match(RouteInterface $route, Request $request): bool
{
$pathInfo = $request->getPathInfo();
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\Matcher\Route;
namespace Micro\Plugin\HttpCore\Business\Matcher\Route;

use Micro\Plugin\Http\Business\Route\RouteInterface;
use Micro\Plugin\HttpCore\Business\Route\RouteInterface;
use Symfony\Component\HttpFoundation\Request;

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

namespace Micro\Plugin\Http\Business\Matcher\Route;
namespace Micro\Plugin\HttpCore\Business\Matcher\Route;

use Micro\Plugin\Http\Business\Matcher\Route\Matchers\MethodMatcher;
use Micro\Plugin\Http\Business\Matcher\Route\Matchers\UriMatcher;
use Micro\Plugin\HttpCore\Business\Matcher\Route\Matchers\MethodMatcher;
use Micro\Plugin\HttpCore\Business\Matcher\Route\Matchers\UriMatcher;

/**
* @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\Matcher\Route;
namespace Micro\Plugin\HttpCore\Business\Matcher\Route;

/**
* @author Stanislau Komar <[email protected]>
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\Matcher\Route;
namespace Micro\Plugin\HttpCore\Business\Matcher\Route;

use Micro\Plugin\Http\Business\Route\RouteInterface;
use Micro\Plugin\HttpCore\Business\Route\RouteInterface;
use Symfony\Component\HttpFoundation\Request;

/**
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\Business\Matcher;
namespace Micro\Plugin\HttpCore\Business\Matcher;

use Micro\Plugin\Http\Business\Matcher\Route\RouteMatcherInterface;
use Micro\Plugin\Http\Business\Route\RouteCollectionInterface;
use Micro\Plugin\Http\Business\Route\RouteInterface;
use Micro\Plugin\Http\Exception\HttpNotFoundException;
use Micro\Plugin\HttpCore\Business\Matcher\Route\RouteMatcherInterface;
use Micro\Plugin\HttpCore\Business\Route\RouteCollectionInterface;
use Micro\Plugin\HttpCore\Business\Route\RouteInterface;
use Micro\Plugin\HttpCore\Exception\HttpNotFoundException;
use Symfony\Component\HttpFoundation\Request;

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

namespace Micro\Plugin\Http\Business\Matcher;
namespace Micro\Plugin\HttpCore\Business\Matcher;

use Micro\Plugin\Http\Business\Matcher\Route\RouteMatcherFactoryInterface;
use Micro\Plugin\Http\Business\Route\RouteCollectionFactoryInterface;
use Micro\Plugin\HttpCore\Business\Matcher\Route\RouteMatcherFactoryInterface;
use Micro\Plugin\HttpCore\Business\Route\RouteCollectionFactoryInterface;

/**
* @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\Matcher;
namespace Micro\Plugin\HttpCore\Business\Matcher;

/**
* @author Stanislau Komar <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* file that was distributed with this source code.
*/

namespace Micro\Plugin\Http\Business\Matcher;
namespace Micro\Plugin\HttpCore\Business\Matcher;

use Micro\Plugin\Http\Business\Route\RouteInterface;
use Micro\Plugin\Http\Exception\HttpException;
use Micro\Plugin\HttpCore\Business\Route\RouteInterface;
use Micro\Plugin\HttpCore\Exception\HttpException;
use Symfony\Component\HttpFoundation\Request;

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

namespace Micro\Plugin\Http\Business\Response\Callback;
namespace Micro\Plugin\HttpCore\Business\Response\Callback;

use Micro\Component\DependencyInjection\Autowire\AutowireHelperInterface;
use Micro\Plugin\Http\Business\Route\RouteInterface;
use Micro\Plugin\Http\Exception\RouteInvalidConfigurationException;
use Micro\Plugin\HttpCore\Business\Route\RouteInterface;
use Micro\Plugin\HttpCore\Exception\RouteInvalidConfigurationException;

/**
* @author Stanislau Komar <[email protected]>
Expand Down
Loading

0 comments on commit 0120116

Please sign in to comment.