Skip to content

Commit 87b5f12

Browse files
committed
modify namespaces
1 parent 0b4cac8 commit 87b5f12

20 files changed

+37
-32
lines changed

Application.php

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

3-
namespace App\Core;
3+
namespace Mosaab\MVC;
44

5-
use App\Core\DB\Database;
5+
use Mosaab\MVC\DB\Database;
66
use Exception;
77

88
class Application

Controller.php

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

3-
namespace App\Core;
3+
namespace Mosaab\MVC;
44

5-
use App\Core\Middlewares\BaseMiddleware;
5+
use Mosaab\MVC\Middlewares\BaseMiddleware;
66

77
class Controller
88
{

DB/Database.php

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

3-
namespace App\Core\DB;
3+
namespace Mosaab\MVC\DB;
44

5-
use App\Core\Application;
5+
use Mosaab\MVC\Application;
66
use PDO;
77

88
class Database

DB/DbModel.php

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

3-
namespace App\Core\DB;
3+
namespace Mosaab\MVC\DB;
44

5-
use App\Core\Application;
6-
use App\Core\Model;
5+
use Mosaab\MVC\Application;
6+
use Mosaab\MVC\Model;
77

88
abstract class DbModel extends Model
99
{

Exceptions/ForbiddenException.php

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

3-
namespace App\Core\Exceptions;
3+
namespace Mosaab\MVC\Exceptions;
44

55
class ForbiddenException extends \Exception
66
{

Exceptions/NotFoundException.php

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

3-
namespace App\Core\Exceptions;
3+
namespace Mosaab\MVC\Exceptions;
44

55
class NotFoundException extends \Exception
66
{

Form/BaseField.php

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

3-
namespace App\Core\Form;
3+
namespace Mosaab\MVC\Form;
44

5-
use App\Core\Model;
5+
use Mosaab\MVC\Model;
66

77
abstract class BaseField
88
{

Form/Form.php

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

3-
namespace App\Core\Form;
3+
namespace Mosaab\MVC\Form;
44

5-
use App\Core\Model;
5+
use Mosaab\MVC\Model;
66

77
class Form
88
{

Form/InputField.php

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

3-
namespace App\Core\Form;
3+
namespace Mosaab\MVC\Form;
44

5-
use App\Core\Model;
5+
use Mosaab\MVC\Model;
66

77
class InputField extends BaseField
88
{

Form/TextareaField.php

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

3-
namespace App\Core\Form;
3+
namespace Mosaab\MVC\Form;
44

55
class TextareaField extends BaseField
66
{

0 commit comments

Comments
 (0)