-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Moved all classes to root folder; - Renamed namespace to Micro\Plugin\HttpCore; - Removed GitHub workflow; - Removed static analysis configuration files;
- Loading branch information
1 parent
19ec43f
commit 0120116
Showing
94 changed files
with
298 additions
and
464 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
Oops, something went wrong.