-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change namespace into angelokezimana\elephpant
- Loading branch information
1 parent
0a3badd
commit 0f9beea
Showing
36 changed files
with
90 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
], | ||
"autoload": { | ||
"psr-4": { | ||
"app\\": "./" | ||
"angelokezimana\\elephpant": "." | ||
} | ||
}, | ||
"require": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
|
||
namespace app\core; | ||
namespace angelokezimana\elephpant; | ||
|
||
use app\core\db\Database; | ||
use angelokezimana\elephpant\db\Database; | ||
|
||
/** | ||
* Class Application | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core | ||
* @package angelokezimana\elephpant | ||
*/ | ||
class Application | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<?php | ||
|
||
namespace app\core; | ||
namespace angelokezimana\elephpant; | ||
|
||
use app\core\middlewares\BaseMiddleware; | ||
use angelokezimana\elephpant\middlewares\BaseMiddleware; | ||
|
||
/** | ||
* Class Controller | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core | ||
* @package angelokezimana\elephpant | ||
*/ | ||
class Controller | ||
{ | ||
public string $layout = 'main'; | ||
public string $action = ''; | ||
|
||
/** | ||
* @var \app\core\middlewares\BaseMiddleware[] | ||
* @var \angelokezimana\elephpant\middlewares\BaseMiddleware[] | ||
*/ | ||
protected array $middlewares = []; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?php | ||
|
||
namespace app\core; | ||
namespace angelokezimana\elephpant; | ||
|
||
/** | ||
* Class Model | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core | ||
* @package angelokezimana\elephpant | ||
*/ | ||
abstract class Model | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?php | ||
|
||
namespace app\core; | ||
namespace angelokezimana\elephpant; | ||
|
||
/** | ||
* Class Request | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core | ||
* @package angelokezimana\elephpant | ||
*/ | ||
class Request | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?php | ||
|
||
namespace app\core; | ||
namespace angelokezimana\elephpant; | ||
|
||
/** | ||
* Class Response | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core | ||
* @package angelokezimana\elephpant | ||
*/ | ||
class Response | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
|
||
namespace app\core; | ||
namespace angelokezimana\elephpant; | ||
|
||
use app\core\exception\NotFoundException; | ||
use angelokezimana\elephpant\exception\NotFoundException; | ||
|
||
/** | ||
* Class Router | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core | ||
* @package angelokezimana\elephpant | ||
*/ | ||
class Router | ||
{ | ||
|
@@ -51,7 +51,7 @@ public function resolve() | |
|
||
if (is_array($callback)) { | ||
/** | ||
* @var \app\core\Controller $controller | ||
* @var \angelokezimana\elephpant\Controller $controller | ||
*/ | ||
$controller = new $callback[0](); | ||
Application::$app->controller = $controller; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?php | ||
|
||
namespace app\core; | ||
namespace angelokezimana\elephpant; | ||
|
||
/** | ||
* Class Session | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core | ||
* @package angelokezimana\elephpant | ||
*/ | ||
class Session | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
|
||
namespace app\core; | ||
namespace angelokezimana\elephpant; | ||
|
||
use app\core\db\DbModel; | ||
use angelokezimana\elephpant\db\DbModel; | ||
|
||
/** | ||
* Class UserModel | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core | ||
* @package angelokezimana\elephpant | ||
*/ | ||
abstract class UserModel extends DbModel | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?php | ||
|
||
namespace app\core; | ||
namespace angelokezimana\elephpant; | ||
|
||
/** | ||
* Class View | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core | ||
* @package angelokezimana\elephpant | ||
*/ | ||
class View | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
|
||
namespace app\core\db; | ||
namespace angelokezimana\elephpant\db; | ||
|
||
use app\core\Application; | ||
use angelokezimana\elephpant\Application; | ||
|
||
/** | ||
* Class Database | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core\db | ||
* @package angelokezimana\elephpant\db | ||
*/ | ||
class Database | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<?php | ||
|
||
namespace app\core\db; | ||
namespace angelokezimana\elephpant\db; | ||
|
||
use app\core\Model; | ||
use app\core\Application; | ||
use angelokezimana\elephpant\Model; | ||
use angelokezimana\elephpant\Application; | ||
|
||
/** | ||
* Class DbModel | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core\db | ||
* @package angelokezimana\elephpant\db | ||
*/ | ||
abstract class DbModel extends Model | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?php | ||
|
||
namespace app\core\exception; | ||
namespace angelokezimana\elephpant\exception; | ||
|
||
/** | ||
* Class ForbiddenException | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core\exception | ||
* @package angelokezimana\elephpant\exception | ||
*/ | ||
class ForbiddenException extends \Exception | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?php | ||
|
||
namespace app\core\exception; | ||
namespace angelokezimana\elephpant\exception; | ||
|
||
/** | ||
* Class NotFoundException | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core\exception | ||
* @package angelokezimana\elephpant\exception | ||
*/ | ||
class NotFoundException extends \Exception | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
|
||
namespace app\core\form; | ||
namespace angelokezimana\elephpant\form; | ||
|
||
use app\core\Model; | ||
use angelokezimana\elephpant\Model; | ||
|
||
/** | ||
* Class BaseField | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core\form | ||
* @package angelokezimana\elephpant\form | ||
*/ | ||
abstract class BaseField | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
|
||
namespace app\core\form; | ||
namespace angelokezimana\elephpant\form; | ||
|
||
use app\core\Model; | ||
use angelokezimana\elephpant\Model; | ||
|
||
/** | ||
* Class Form | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core\form | ||
* @package angelokezimana\elephpant\form | ||
*/ | ||
class Form | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
|
||
namespace app\core\form; | ||
namespace angelokezimana\elephpant\form; | ||
|
||
use app\core\Model; | ||
use angelokezimana\elephpant\Model; | ||
|
||
/** | ||
* Class Field | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core\form | ||
* @package angelokezimana\elephpant\form | ||
*/ | ||
class InputField extends BaseField | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
|
||
namespace app\core\form; | ||
namespace angelokezimana\elephpant\form; | ||
|
||
use app\core\Model; | ||
use angelokezimana\elephpant\Model; | ||
|
||
/** | ||
* Class TextareaField | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core\form | ||
* @package angelokezimana\elephpant\form | ||
*/ | ||
class TextareaField extends BaseField | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<?php | ||
|
||
namespace app\core\middlewares; | ||
namespace angelokezimana\elephpant\middlewares; | ||
|
||
use app\core\Application; | ||
use app\core\exception\ForbiddenException; | ||
use angelokezimana\elephpant\Application; | ||
use angelokezimana\elephpant\exception\ForbiddenException; | ||
|
||
/** | ||
* Class AuthMiddleware | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core\middlewares | ||
* @package angelokezimana\elephpant\middlewares | ||
*/ | ||
class AuthMiddleware extends BaseMiddleware | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?php | ||
|
||
namespace app\core\middlewares; | ||
namespace angelokezimana\elephpant\middlewares; | ||
|
||
/** | ||
* Class BaseMiddleware | ||
* | ||
* @author Kezimana Aimé Angelo <[email protected]> | ||
* @package app\core\middlewares | ||
* @package angelokezimana\elephpant\middlewares | ||
*/ | ||
abstract class BaseMiddleware | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.