diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d9b4d0e..11c9475 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,11 +63,8 @@ jobs: - name: Push changes to main run: | - git fetch origin main dev - git checkout main - git config pull.rebase false - git pull origin main - git merge origin/dev --allow-unrelated-histories --no-ff - git push origin main + git checkout -b main + git reset --hard dev + git push -u -f origin main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Router/MapRoute.php b/Router/MapRoute.php index 3ac6a2b..83e420f 100644 --- a/Router/MapRoute.php +++ b/Router/MapRoute.php @@ -2,8 +2,8 @@ namespace PhpSlides\Router; -use PhpSlides\Src\Controller\Controller; -use PhpSlides\Src\Foundation\Application; +use PhpSlides\Core\Controller\Controller; +use PhpSlides\Core\Foundation\Application; use PhpSlides\Router\Interface\MapInterface; /** @@ -18,8 +18,8 @@ */ class MapRoute extends Controller implements MapInterface { - use \PhpSlides\Src\Utils\Validate; - use \PhpSlides\Src\Utils\Routes\StrictTypes; + use \PhpSlides\Core\Utils\Validate; + use \PhpSlides\Core\Utils\Routes\StrictTypes; /** * @var string|array $route The route(s) to be mapped. diff --git a/Router/Route.php b/Router/Route.php index f6805c0..a75cd7c 100644 --- a/Router/Route.php +++ b/Router/Route.php @@ -17,8 +17,8 @@ use Closure; use PhpSlides\Exception; -use PhpSlides\Src\Traits\FileHandler; -use PhpSlides\Src\Controller\Controller; +use PhpSlides\Core\Traits\FileHandler; +use PhpSlides\Core\Controller\Controller; use PhpSlides\Router\Interface\RouteInterface; /** diff --git a/Router/view.php b/Router/view.php index 0be1e52..ba30334 100644 --- a/Router/view.php +++ b/Router/view.php @@ -3,7 +3,7 @@ namespace PhpSlides\Router; use component; -use PhpSlides\Src\Foundation\Application; +use PhpSlides\Core\Foundation\Application; /** * -------------------------------------------------------------- diff --git a/composer.json b/composer.json index f83ee4a..b2b8d1d 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "autoload": { "psr-4": { "PhpSlides\\": "src/Exception/", - "PhpSlides\\Src\\": "src/", + "PhpSlides\\Core\\": "src/", "PhpSlides\\Router\\": "Router/" }, "files": ["src/Bootstrap/App.php"] diff --git a/src/Bootstrap/App.php b/src/Bootstrap/App.php index d43ba7c..341170c 100644 --- a/src/Bootstrap/App.php +++ b/src/Bootstrap/App.php @@ -3,4 +3,4 @@ /** * Start the PhpSlides Application */ -(new \PhpSlides\Src\Foundation\Application())->create(); +(new \PhpSlides\Core\Foundation\Application())->create(); diff --git a/src/Cache/Cache.php b/src/Cache/Cache.php index 959b6a9..7bd188c 100644 --- a/src/Cache/Cache.php +++ b/src/Cache/Cache.php @@ -1,8 +1,8 @@ load(__DIR__ . '/cors.php'); diff --git a/src/Config/cors.php b/src/Config/cors.php index 5961680..fbf9382 100644 --- a/src/Config/cors.php +++ b/src/Config/cors.php @@ -1,8 +1,8 @@ safeLoad(Application::$configsDir . 'guards.php') diff --git a/src/Config/jwt.config.php b/src/Config/jwt.config.php index 99619d1..a736504 100644 --- a/src/Config/jwt.config.php +++ b/src/Config/jwt.config.php @@ -1,8 +1,8 @@ safeLoad(Application::$configsDir . 'jwt.php') diff --git a/src/Controller/ClassController.php b/src/Controller/ClassController.php index 6a1570c..ddc961c 100644 --- a/src/Controller/ClassController.php +++ b/src/Controller/ClassController.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace PhpSlides\Src\Controller; +namespace PhpSlides\Core\Controller; use PhpSlides\Exception; diff --git a/src/Controller/Controller.php b/src/Controller/Controller.php index f1d78b3..81eb77a 100644 --- a/src/Controller/Controller.php +++ b/src/Controller/Controller.php @@ -1,6 +1,6 @@