Commit 8d7e118a by pupi1985

Move HTTP exceptions to own namespace and remove Routing namespace

parent 41a96f30
......@@ -24,8 +24,8 @@ use Q2A\Controllers\User\UserPosts;
use Q2A\Controllers\User\UserProfile;
use Q2A\Controllers\User\UsersList;
use Q2A\Exceptions\ExceptionHandler;
use Q2A\Http\Routing\Route;
use Q2A\Http\Routing\Router;
use Q2A\Http\Route;
use Q2A\Http\Router;
if (!defined('QA_VERSION')) { // don't allow this page to be requested directly from browser
header('Location: ../../');
......
......@@ -18,7 +18,7 @@
namespace Q2A\Controllers\User;
use Q2A\Http\PageNotFoundException;
use Q2A\Http\Exceptions\PageNotFoundException;
use Q2A\Middleware\Auth\InternalUsersOnly;
require_once QA_INCLUDE_DIR . 'db/selects.php';
......
......@@ -18,7 +18,7 @@
namespace Q2A\Controllers\User;
use Q2A\Http\PageNotFoundException;
use Q2A\Http\Exceptions\PageNotFoundException;
require_once QA_INCLUDE_DIR . 'db/users.php';
require_once QA_INCLUDE_DIR . 'db/selects.php';
......
......@@ -18,7 +18,7 @@
namespace Q2A\Controllers\User;
use Q2A\Http\PageNotFoundException;
use Q2A\Http\Exceptions\PageNotFoundException;
require_once QA_INCLUDE_DIR . 'db/users.php';
require_once QA_INCLUDE_DIR . 'db/selects.php';
......
......@@ -19,7 +19,7 @@
namespace Q2A\Exceptions;
use Exception;
use Q2A\Http\PageNotFoundException;
use Q2A\Http\Exceptions\PageNotFoundException;
require_once QA_INCLUDE_DIR . 'app/format.php';
......
......@@ -16,7 +16,7 @@
More about this license: http://www.question2answer.org/license.php
*/
namespace Q2A\Http;
namespace Q2A\Http\Exceptions;
use Q2A\Exceptions\ErrorMessageException;
......
......@@ -16,7 +16,7 @@
More about this license: http://www.question2answer.org/license.php
*/
namespace Q2A\Http\Routing;
namespace Q2A\Http;
class Route
{
......
......@@ -16,7 +16,7 @@
More about this license: http://www.question2answer.org/license.php
*/
namespace Q2A\Http\Routing;
namespace Q2A\Http;
class Router
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment