Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
10deff45
Commit
10deff45
authored
Aug 01, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bypass auto-loader when loading core routing classes.
parent
23d57425
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
public/index.php
+11
-1
No files found.
public/index.php
View file @
10deff45
...
...
@@ -136,6 +136,16 @@ if (System\Config::get('session.driver') != '')
}
// --------------------------------------------------------------
// Load all of the core routing classes.
// --------------------------------------------------------------
require
SYS_PATH
.
'request'
.
EXT
;
require
SYS_PATH
.
'response'
.
EXT
;
require
SYS_PATH
.
'routing/route'
.
EXT
;
require
SYS_PATH
.
'routing/router'
.
EXT
;
require
SYS_PATH
.
'routing/loader'
.
EXT
;
require
SYS_PATH
.
'routing/filter'
.
EXT
;
// --------------------------------------------------------------
// Register the route filters.
// --------------------------------------------------------------
System\Routing\Filter
::
register
(
require
APP_PATH
.
'filters'
.
EXT
);
...
...
@@ -150,7 +160,7 @@ $response = System\Routing\Filter::call('before', array(), true);
// ----------------------------------------------------------
if
(
is_null
(
$response
))
{
$route
=
System\Routing\Router
::
make
(
Request
::
method
(),
Request
::
uri
(),
new
System\Routing\Loader
)
->
route
();
$route
=
System\Routing\Router
::
make
(
System\Request
::
method
(),
System\
Request
::
uri
(),
new
System\Routing\Loader
)
->
route
();
$response
=
(
is_null
(
$route
))
?
System\Response
::
error
(
'404'
)
:
$route
->
call
();
}
...
...
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