Skip to content

Commit

Permalink
switch from to my fork of trulyao/php-router
Browse files Browse the repository at this point in the history
  • Loading branch information
codad5 committed Jun 7, 2023
1 parent 69cf357 commit 3563ce4
Show file tree
Hide file tree
Showing 16 changed files with 143 additions and 57 deletions.
1 change: 1 addition & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/wemall-new.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
},
"require": {
"trulyao/php-router": "^2.0",
"codad5/php-router": "*",
"trulyao/neat-http": "^1.0",
"guzzlehttp/guzzle": "^7.5",
"vlucas/phpdotenv": "^5.4",
Expand All @@ -32,5 +32,11 @@
"test":"./vendor/bin/phpunit",
"stan": "./vendor/bin/phpstan analyse -c phpstan.neon",
"start": "php -S localhost:2000"
}
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/codad5/php-router"
}
]
}
141 changes: 108 additions & 33 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
require(__DIR__ . '/vendor/autoload.php');

use Codad5\Wemall\Libs\ErrorHandler;
use Trulyao\PhpRouter\HTTP\Response as Response;
use Trulyao\PhpRouter\Router as Router;
use Codad5\PhpRouter\HTTP\Response as Response;
use Codad5\PhpRouter\Router as Router;
use Codad5\Wemall\Libs\ResponseHandler as CustomResponse;
use Codad5\Wemall\Libs\Helper\Helper;
use Trulyao\PhpRouter\HTTP\Request as Request;
use Codad5\PhpRouter\HTTP\Request as Request;
use Codad5\PhpInex\Import as Import;


Expand Down
4 changes: 2 additions & 2 deletions src/Controller/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use Codad5\Wemall\Libs\Utils\UserAuth;
use Codad5\Wemall\Libs\Validator;
use Codad5\Wemall\Models\User;
use Trulyao\PhpRouter\HTTP\Request;
use Trulyao\PhpRouter\HTTP\Response;
use Codad5\PhpRouter\HTTP\Request;
use Codad5\PhpRouter\HTTP\Response;

class AuthController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Codad5\Wemall\Libs\Exceptions\CustomException;
use Codad5\Wemall\Libs\Utils\UserAuth;
use Codad5\Wemall\Libs\ViewLoader;
use Trulyao\PhpRouter\HTTP\{Request, Response};
use Codad5\PhpRouter\HTTP\{Request, Response};

class HomeController
{
Expand Down
4 changes: 2 additions & 2 deletions src/Controller/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use Codad5\Wemall\View\V1 as View;
use Codad5\Wemall\Models\Product;
use Codad5\Wemall\Models\Shop;
use Trulyao\PhpRouter\HTTP\Request;
use Trulyao\PhpRouter\HTTP\Response;
use Codad5\PhpRouter\HTTP\Request;
use Codad5\PhpRouter\HTTP\Response;

class ProductController
{
Expand Down
4 changes: 2 additions & 2 deletions src/Controller/ShopController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
use Codad5\Wemall\Models\Product;
use Codad5\Wemall\Models\Shop;
use Codad5\Wemall\Models\User;
use Trulyao\PhpRouter\HTTP\Request;
use Trulyao\PhpRouter\HTTP\Response;
use Codad5\PhpRouter\HTTP\Request;
use Codad5\PhpRouter\HTTP\Response;
use Codad5\Wemall\View\V1 as View;

class ShopController
Expand Down
Loading

0 comments on commit 3563ce4

Please sign in to comment.