Skip to content

Commit b01c89e

Browse files
committed
Change namespace into thecodeholic\phpmvc
1 parent e1c1239 commit b01c89e

20 files changed

+57
-52
lines changed

Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* Time: 9:57 AM
66
*/
77

8-
namespace app\core;
8+
namespace thecodeholic\phpmvc;
99

10-
use app\core\db\Database;
10+
use thecodeholic\phpmvc\db\Database;
1111

1212
/**
1313
* Class Application

Controller.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
* Time: 8:43 AM
66
*/
77

8-
namespace app\core;
8+
namespace thecodeholic\phpmvc;
99

10-
use app\core\middlewares\BaseMiddleware;
10+
use thecodeholic\phpmvc\middlewares\BaseMiddleware;
1111
/**
1212
* Class Controller
1313
*
1414
* @author Zura Sekhniashvili <zurasekhniashvili@gmail.com>
15-
* @package app\core
15+
* @package thecodeholic\phpmvc
1616
*/
1717
class Controller
1818
{
1919
public string $layout = 'main';
2020
public string $action = '';
2121

2222
/**
23-
* @var \app\core\BaseMiddleware[]
23+
* @var \thecodeholic\phpmvc\BaseMiddleware[]
2424
*/
2525
protected array $middlewares = [];
2626

@@ -40,7 +40,7 @@ public function registerMiddleware(BaseMiddleware $middleware)
4040
}
4141

4242
/**
43-
* @return \app\core\middlewares\BaseMiddleware[]
43+
* @return \thecodeholic\phpmvc\middlewares\BaseMiddleware[]
4444
*/
4545
public function getMiddlewares(): array
4646
{

Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* Time: 9:16 AM
66
*/
77

8-
namespace app\core;
8+
namespace thecodeholic\phpmvc;
99

1010

1111
/**
1212
* Class Model
1313
*
1414
* @author Zura Sekhniashvili <zurasekhniashvili@gmail.com>
15-
* @package app\core
15+
* @package thecodeholic\phpmvc
1616
*/
1717
class Model
1818
{

Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Time: 10:23 AM
66
*/
77

8-
namespace app\core;
8+
namespace thecodeholic\phpmvc;
99

1010

1111
/**

Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* Time: 10:53 AM
66
*/
77

8-
namespace app\core;
8+
namespace thecodeholic\phpmvc;
99

1010

1111
/**
1212
* Class Response
1313
*
1414
* @author Zura Sekhniashvili <zurasekhniashvili@gmail.com>
15-
* @package app\core
15+
* @package thecodeholic\phpmvc
1616
*/
1717
class Response
1818
{

Router.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* Time: 10:01 AM
66
*/
77

8-
namespace app\core;
8+
namespace thecodeholic\phpmvc;
99

10-
use app\core\exception\NotFoundException;
10+
use thecodeholic\phpmvc\exception\NotFoundException;
1111

1212
/**
1313
* Class Router
@@ -50,7 +50,7 @@ public function resolve()
5050
}
5151
if (is_array($callback)) {
5252
/**
53-
* @var $controller \app\core\Controller
53+
* @var $controller \thecodeholic\phpmvc\Controller
5454
*/
5555
$controller = new $callback[0];
5656
$controller->action = $callback[1];

Session.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* Time: 11:18 PM
66
*/
77

8-
namespace app\core;
8+
namespace thecodeholic\phpmvc;
99

1010

1111
/**
1212
* Class Session
1313
*
1414
* @author Zura Sekhniashvili <zurasekhniashvili@gmail.com>
15-
* @package app\core
15+
* @package thecodeholic\phpmvc
1616
*/
1717
class Session
1818
{

UserModel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
* Time: 10:13 AM
66
*/
77

8-
namespace app\core;
8+
namespace thecodeholic\phpmvc;
99

10-
use app\core\db\DbModel;
10+
use thecodeholic\phpmvc\db\DbModel;
1111

1212
/**
1313
* Class UserModel
1414
*
1515
* @author Zura Sekhniashvili <zurasekhniashvili@gmail.com>
16-
* @package app\core
16+
* @package thecodeholic\phpmvc
1717
*/
1818
abstract class UserModel extends DbModel
1919
{

View.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* Time: 2:45 PM
66
*/
77

8-
namespace app\core;
8+
namespace thecodeholic\phpmvc;
99

1010

1111
/**
1212
* Class View
1313
*
1414
* @author Zura Sekhniashvili <zurasekhniashvili@gmail.com>
15-
* @package app\core
15+
* @package thecodeholic\phpmvc
1616
*/
1717
class View
1818
{

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@
66
"email": "zurasekhniashvili@gmail.com"
77
}
88
],
9-
"require": {}
9+
"require": {},
10+
"autoload": {
11+
"psr-4": {
12+
"thecodeholic\\phpmvc": "."
13+
}
14+
}
1015
}

0 commit comments

Comments
 (0)