Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions Engine/App.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php

namespace Engine;

use Engine\Error\HttpError;
use Engine\Response\JsonResponse;
use Engine\Response\Response;
use Engine\Response\ResponseEmitter;
use Engine\Routing\Attributes\Body;
use Engine\Routing\Attributes\Header;
use Engine\Routing\Attributes\PathParam;
use Engine\Routing\Attributes\QueryParam;
use Engine\Routing\Attributes\Status;
use Engine\Routing\Router\Router;
use Engine\Service\ServiceContainer;
namespace Shift;

use Shift\Error\HttpError;
use Shift\Response\JsonResponse;
use Shift\Response\Response;
use Shift\Response\ResponseEmitter;
use Shift\Routing\Attributes\Body;
use Shift\Routing\Attributes\Header;
use Shift\Routing\Attributes\PathParam;
use Shift\Routing\Attributes\QueryParam;
use Shift\Routing\Attributes\Status;
use Shift\Routing\Router\Router;
use Shift\Service\ServiceContainer;
use JsonException;
use ReflectionClass;
use ReflectionException;
Expand All @@ -23,7 +23,7 @@

/**
* Class App
* @package Engine
* @package Shift
*/
final class App
{
Expand Down
2 changes: 1 addition & 1 deletion Engine/Console/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Klasa do obsługi wyjścia na terminal
*/

namespace Engine\Console;
namespace Shift\Console;

class Cli
{
Expand Down
2 changes: 1 addition & 1 deletion Engine/Console/CommandInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 12:51
*/

namespace Engine\Console;
namespace Shift\Console;


interface CommandInterface
Expand Down
2 changes: 1 addition & 1 deletion Engine/Console/Commands/Help.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Console\Commands;

use Engine\Console\CommandInterface;
use Shift\Console\CommandInterface;

class Help implements CommandInterface
{
Expand Down
8 changes: 4 additions & 4 deletions Engine/Console/Commands/RouteList.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Console\Commands;

use Engine\Console\Cli;
use Engine\Console\CommandInterface;
use Engine\Modules\ModuleLoader;
use Engine\Routing\Router\Router;
use Shift\Console\Cli;
use Shift\Console\CommandInterface;
use Shift\Modules\ModuleLoader;
use Shift\Routing\Router\Router;

class RouteList implements CommandInterface
{
Expand Down
2 changes: 1 addition & 1 deletion Engine/Console/Commands/Serve.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace Console\Commands;


use Engine\Console\CommandInterface;
use Shift\Console\CommandInterface;

class Serve implements CommandInterface
{
Expand Down
2 changes: 1 addition & 1 deletion Engine/Console/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Updated: 2025-06-22
*/

namespace Engine\Console;
namespace Shift\Console;

/**
* Główna klasa konsolowa
Expand Down
4 changes: 2 additions & 2 deletions Engine/Console/Shift.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* Time: 11:57
*/

namespace Engine\Console;
namespace Shift\Console;

use Engine\Modules\ModuleLoader;
use Shift\Modules\ModuleLoader;
use ReflectionClass;
use ReflectionException;

Expand Down
10 changes: 5 additions & 5 deletions Engine/Controller.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

namespace Engine;
namespace Shift;

use Engine\Response\JsonResponse;
use Engine\Response\Response;
use Engine\Service\ServiceContainer;
use Shift\Response\JsonResponse;
use Shift\Response\Response;
use Shift\Service\ServiceContainer;
use JsonException;

/**
* Class Controller
* @package Engine
* @package Shift
*/
abstract class Controller
{
Expand Down
4 changes: 2 additions & 2 deletions Engine/Error/ErrorHandler.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Engine\Error;
namespace Shift\Error;

use Throwable;

/**
* Class ErrorHandler
* @package Engine\Error
* @package Shift\Error
*/
class ErrorHandler
{
Expand Down
2 changes: 1 addition & 1 deletion Engine/Error/HttpError.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Error;
namespace Shift\Error;

use Throwable;

Expand Down
4 changes: 2 additions & 2 deletions Engine/Error/ShiftError.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
* Time: 17:58
*/

namespace Engine\Error;
namespace Shift\Error;


use Throwable;

/**
* Class ShiftError
* @package Engine\Error
* @package Shift\Error
*/
class ShiftError extends \Error
{
Expand Down
2 changes: 1 addition & 1 deletion Engine/Error/ShiftError/ErrorHighlighter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 23:15
*/

namespace Engine\Error\ShiftError;
namespace Shift\Error\ShiftError;


final class ErrorHighlighter
Expand Down
2 changes: 1 addition & 1 deletion Engine/Error/ShiftError/StackTrace.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 23:02
*/

namespace Engine\Error\ShiftError;
namespace Shift\Error\ShiftError;


class StackTrace
Expand Down
6 changes: 3 additions & 3 deletions Engine/Modules/AbstractModule.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Engine\Modules;
namespace Shift\Modules;

use Engine\Routing\Router\Router;
use Engine\Service\ServiceContainer;
use Shift\Routing\Router\Router;
use Shift\Service\ServiceContainer;

abstract class AbstractModule implements ModuleInterface
{
Expand Down
6 changes: 3 additions & 3 deletions Engine/Modules/ModuleInterface.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Engine\Modules;
namespace Shift\Modules;

use Engine\Routing\Router\Router;
use Engine\Service\ServiceContainer;
use Shift\Routing\Router\Router;
use Shift\Service\ServiceContainer;

interface ModuleInterface
{
Expand Down
6 changes: 3 additions & 3 deletions Engine/Modules/ModuleLoader.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Engine\Modules;
namespace Shift\Modules;

use Engine\Routing\Router\Router;
use Engine\Service\ServiceContainer;
use Shift\Routing\Router\Router;
use Shift\Service\ServiceContainer;

class ModuleLoader
{
Expand Down
6 changes: 3 additions & 3 deletions Engine/Request.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Engine;
namespace Shift;

use Engine\Error\HttpError;
use Shift\Error\HttpError;

/**
* Class Request
* @package Engine
* @package Shift
*/
class Request
{
Expand Down
2 changes: 1 addition & 1 deletion Engine/Response/JsonResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Response;
namespace Shift\Response;

use JsonException;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Response/Response.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Response;
namespace Shift\Response;

class Response
{
Expand Down
2 changes: 1 addition & 1 deletion Engine/Response/ResponseEmitter.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Response;
namespace Shift\Response;

class ResponseEmitter
{
Expand Down
8 changes: 4 additions & 4 deletions Engine/Routing/AttributeRouteLoader.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Engine\Routing;
namespace Shift\Routing;

use Engine\Routing\Attributes\Route;
use Engine\Routing\Attributes\RoutePrefix;
use Engine\Routing\Router\Router;
use Shift\Routing\Attributes\Route;
use Shift\Routing\Attributes\RoutePrefix;
use Shift\Routing\Router\Router;
use ReflectionClass;

class AttributeRouteLoader
Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/Body.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/Delete.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/Get.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/Header.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/Patch.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/PathParam.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/Post.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/Put.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/QueryParam.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/Route.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/RoutePrefix.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Routing/Attributes/Status.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Engine\Routing\Attributes;
namespace Shift\Routing\Attributes;

use Attribute;

Expand Down
4 changes: 2 additions & 2 deletions Engine/Routing/Router/Route.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Engine\Routing\Router;
namespace Shift\Routing\Router;

use Engine\Request;
use Shift\Request;

class Route
{
Expand Down
Loading
Loading