Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit b2201a9

Browse files
authored
Merge pull request #63 from PhpSlides/main
Main
2 parents 0c442f5 + d0aa303 commit b2201a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+265
-273
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ jobs:
6363
6464
- name: Push changes to main
6565
run: |
66-
git fetch origin main dev
67-
git checkout main
68-
git config pull.rebase false
69-
git pull origin main
70-
git merge origin/dev --allow-unrelated-histories --no-ff
71-
git push origin main
66+
git checkout -b main
67+
git reset --hard dev
68+
git push -u -f origin main
7269
env:
7370
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Router/MapRoute.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace PhpSlides\Router;
44

5-
use PhpSlides\Src\Controller\Controller;
6-
use PhpSlides\Src\Foundation\Application;
5+
use PhpSlides\Core\Controller\Controller;
6+
use PhpSlides\Core\Foundation\Application;
77
use PhpSlides\Router\Interface\MapInterface;
88

99
/**
@@ -18,8 +18,8 @@
1818
*/
1919
class MapRoute extends Controller implements MapInterface
2020
{
21-
use \PhpSlides\Src\Utils\Validate;
22-
use \PhpSlides\Src\Utils\Routes\StrictTypes;
21+
use \PhpSlides\Core\Utils\Validate;
22+
use \PhpSlides\Core\Utils\Routes\StrictTypes;
2323

2424
/**
2525
* @var string|array $route The route(s) to be mapped.

Router/Route.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
use Closure;
1919
use PhpSlides\Exception;
20-
use PhpSlides\Src\Traits\FileHandler;
21-
use PhpSlides\Src\Controller\Controller;
20+
use PhpSlides\Core\Traits\FileHandler;
21+
use PhpSlides\Core\Controller\Controller;
2222
use PhpSlides\Router\Interface\RouteInterface;
2323

2424
/**

Router/view.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace PhpSlides\Router;
44

55
use component;
6-
use PhpSlides\Src\Foundation\Application;
6+
use PhpSlides\Core\Foundation\Application;
77

88
/**
99
* --------------------------------------------------------------

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"autoload": {
3333
"psr-4": {
3434
"PhpSlides\\": "src/Exception/",
35-
"PhpSlides\\Src\\": "src/",
35+
"PhpSlides\\Core\\": "src/",
3636
"PhpSlides\\Router\\": "Router/"
3737
},
3838
"files": ["src/Bootstrap/App.php"]

src/Bootstrap/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/**
44
* Start the PhpSlides Application
55
*/
6-
(new \PhpSlides\Src\Foundation\Application())->create();
6+
(new \PhpSlides\Core\Foundation\Application())->create();

src/Cache/Cache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace PhpSlides\Src\Cache;
3+
namespace PhpSlides\Core\Cache;
44

5-
use PhpSlides\Src\Foundation\Application;
5+
use PhpSlides\Core\Foundation\Application;
66

77
/**
88
* Class Cache

src/Cli/Configure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types=1);
22

3-
namespace PhpSlides\Src\Cli;
3+
namespace PhpSlides\Core\Cli;
44

55
trait Configure
66
{

src/Config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
use PhpSlides\Src\Loader\FileLoader;
3+
use PhpSlides\Core\Loader\FileLoader;
44

55
(new FileLoader())->load(__DIR__ . '/cors.php');

src/Config/cors.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use PhpSlides\Src\Logger\Logger;
4-
use PhpSlides\Src\Loader\FileLoader;
5-
use PhpSlides\Src\Foundation\Application;
3+
use PhpSlides\Core\Logger\Logger;
4+
use PhpSlides\Core\Loader\FileLoader;
5+
use PhpSlides\Core\Foundation\Application;
66

77
$cors =
88
(new FileLoader())

0 commit comments

Comments
 (0)