Skip to content

Commit

Permalink
update namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sksaju committed Dec 16, 2020
1 parent 32b9fcf commit b4f66ea
Show file tree
Hide file tree
Showing 35 changed files with 36 additions and 932 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
}
},
"require": {
"vlucas/phpdotenv": "^5.2"
"vlucas/phpdotenv": "^5.2",
"sksaju/php-micro-framework-core": "^1.0"
}
}
8 changes: 4 additions & 4 deletions controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace app\controllers;

use app\core\Application;
use app\core\middlewares\AuthMiddleware;
use app\core\Request;
use app\core\Response;
use sksaju\phpmvc\Application;
use sksaju\phpmvc\middlewares\AuthMiddleware;
use sksaju\phpmvc\Request;
use sksaju\phpmvc\Response;
use app\models\LoginForm;
use app\models\User;

Expand Down
8 changes: 4 additions & 4 deletions controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace app\controllers;

use app\core\Application;
use app\core\middlewares\BaseMiddleware;
use sksaju\phpmvc\Application;
use sksaju\phpmvc\middlewares\BaseMiddleware;

/**
* Class Controller
Expand All @@ -18,7 +18,7 @@ class Controller
public string $action = '';

/**
* @var app\core\middlewares\BaseMiddleware[]
* @var sksaju\phpmvc\middlewares\BaseMiddleware[]
*/
protected array $middlewares = [];

Expand All @@ -38,7 +38,7 @@ public function registerMiddleware(BaseMiddleware $middleware)
}

/**
* @return app\core\middlewares\BaseMiddleware[]
* @return sksaju\phpmvc\middlewares\BaseMiddleware[]
*/
public function getMiddlewares(): array
{
Expand Down
8 changes: 4 additions & 4 deletions controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace app\controllers;

use app\core\Application;
use app\core\Request;
use app\core\Response;
use sksaju\phpmvc\Application;
use sksaju\phpmvc\Request;
use sksaju\phpmvc\Response;
use app\models\ContactForm;

/**
Expand Down Expand Up @@ -36,7 +36,7 @@ public function contact(Request $request, Response $response)
return;
}
}

return $this->render('contact', [
'model' => $contact,
]);
Expand Down
101 changes: 0 additions & 101 deletions core/Application.php

This file was deleted.

98 changes: 0 additions & 98 deletions core/Database.php

This file was deleted.

52 changes: 0 additions & 52 deletions core/DbModel.php

This file was deleted.

Loading

0 comments on commit b4f66ea

Please sign in to comment.