Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
d60d1626
Commit
d60d1626
authored
Jun 28, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复自动加载在命名空间改变后失效的问题
parent
4bd23451
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
autoload.php
src/autoload.php
+2
-2
No files found.
src/autoload.php
View file @
d60d1626
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
function
internalApiAutoloader
(
$className
)
{
function
internalApiAutoloader
(
$className
)
{
if
(
substr
(
$className
,
0
,
12
)
==
'internalApi\\'
)
{
if
(
substr
(
$className
,
0
,
12
)
==
'internalApi\\'
)
{
$file
=
dirname
(
__DIR__
)
.
DIRECTORY_SEPARATOR
.
str_replace
(
'\\'
,
DIRECTORY_SEPARATOR
,
$className
)
.
'.php'
;
$file
=
__DIR__
.
DIRECTORY_SEPARATOR
.
substr
(
str_replace
(
'\\'
,
DIRECTORY_SEPARATOR
,
$className
),
12
)
.
'.php'
;
if
(
is_file
(
$file
))
{
if
(
is_file
(
$file
))
{
requir
e
$file
;
includ
e
$file
;
}
}
}
}
}
}
...
...
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