updated bootstrap.php
This commit is contained in:
parent
3686edf769
commit
0c439e2c64
@ -1315,7 +1315,7 @@ class Request
|
|||||||
'REQUEST_URI' => $uri,
|
'REQUEST_URI' => $uri,
|
||||||
'QUERY_STRING' => $queryString,
|
'QUERY_STRING' => $queryString,
|
||||||
));
|
));
|
||||||
return new self($query, $request, array(), $cookies, $files, $server);
|
return new static($query, $request, array(), $cookies, $files, $server);
|
||||||
}
|
}
|
||||||
public function duplicate(array $query = null, array $request = null, array $attributes = null, array $cookies = null, array $files = null, array $server = null)
|
public function duplicate(array $query = null, array $request = null, array $attributes = null, array $cookies = null, array $files = null, array $server = null)
|
||||||
{
|
{
|
||||||
@ -1934,9 +1934,7 @@ class UniversalClassLoader
|
|||||||
}
|
}
|
||||||
public function loadClass($class)
|
public function loadClass($class)
|
||||||
{
|
{
|
||||||
if ('\\' === $class[0]) {
|
$class = ltrim($class, '\\');
|
||||||
$class = substr($class, 1);
|
|
||||||
}
|
|
||||||
if (false !== ($pos = strripos($class, '\\'))) {
|
if (false !== ($pos = strripos($class, '\\'))) {
|
||||||
$namespace = substr($class, 0, $pos);
|
$namespace = substr($class, 0, $pos);
|
||||||
foreach ($this->namespaces as $ns => $dir) {
|
foreach ($this->namespaces as $ns => $dir) {
|
||||||
|
Reference in New Issue
Block a user