Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
8d7e118a
Commit
8d7e118a
authored
Dec 30, 2017
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move HTTP exceptions to own namespace and remove Routing namespace
parent
41a96f30
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
9 deletions
+9
-9
page.php
qa-include/app/page.php
+2
-2
UserMessages.php
qa-src/Controllers/User/UserMessages.php
+1
-1
UserPosts.php
qa-src/Controllers/User/UserPosts.php
+1
-1
UserProfile.php
qa-src/Controllers/User/UserProfile.php
+1
-1
ExceptionHandler.php
qa-src/Exceptions/ExceptionHandler.php
+1
-1
PageNotFoundException.php
qa-src/Http/Exceptions/PageNotFoundException.php
+1
-1
Route.php
qa-src/Http/Route.php
+1
-1
Router.php
qa-src/Http/Router.php
+1
-1
No files found.
qa-include/app/page.php
View file @
8d7e118a
...
...
@@ -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\Rout
ing\Rout
e
;
use
Q2A\Http\Rout
ing\Rout
er
;
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: ../../'
);
...
...
qa-src/Controllers/User/UserMessages.php
View file @
8d7e118a
...
...
@@ -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'
;
...
...
qa-src/Controllers/User/UserPosts.php
View file @
8d7e118a
...
...
@@ -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'
;
...
...
qa-src/Controllers/User/UserProfile.php
View file @
8d7e118a
...
...
@@ -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'
;
...
...
qa-src/Exceptions/ExceptionHandler.php
View file @
8d7e118a
...
...
@@ -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'
;
...
...
qa-src/Http/PageNotFoundException.php
→
qa-src/Http/
Exceptions/
PageNotFoundException.php
View file @
8d7e118a
...
...
@@ -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
;
...
...
qa-src/Http/Rout
ing/Rout
e.php
→
qa-src/Http/Route.php
View file @
8d7e118a
...
...
@@ -16,7 +16,7 @@
More about this license: http://www.question2answer.org/license.php
*/
namespace
Q2A\Http
\Routing
;
namespace
Q2A\Http
;
class
Route
{
...
...
qa-src/Http/Rout
ing/Rout
er.php
→
qa-src/Http/Router.php
View file @
8d7e118a
...
...
@@ -16,7 +16,7 @@
More about this license: http://www.question2answer.org/license.php
*/
namespace
Q2A\Http
\Routing
;
namespace
Q2A\Http
;
class
Router
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment