mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Move HTTPApplication to SilverStripe\Control namespace
This commit is contained in:
parent
e2c4a18f63
commit
5b59a912b6
2
main.php
2
main.php
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use SilverStripe\Control\HTTPApplication;
|
||||||
use SilverStripe\Control\HTTPRequestBuilder;
|
use SilverStripe\Control\HTTPRequestBuilder;
|
||||||
use SilverStripe\Core\CoreKernel;
|
use SilverStripe\Core\CoreKernel;
|
||||||
use SilverStripe\Core\HTTPApplication;
|
|
||||||
use SilverStripe\Core\Startup\ErrorControlChainMiddleware;
|
use SilverStripe\Core\Startup\ErrorControlChainMiddleware;
|
||||||
|
|
||||||
require __DIR__ . '/src/includes/autoload.php';
|
require __DIR__ . '/src/includes/autoload.php';
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace SilverStripe\Core;
|
namespace SilverStripe\Control;
|
||||||
|
|
||||||
use SilverStripe\Control\Director;
|
use SilverStripe\Core\Application;
|
||||||
use SilverStripe\Control\HTTPRequest;
|
use SilverStripe\Control\HTTPMiddleware;
|
||||||
use SilverStripe\Control\HTTPResponse;
|
use SilverStripe\Core\Kernel;
|
||||||
use SilverStripe\Control\HTTPResponse_Exception;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invokes the HTTP application within an ErrorControlChain
|
* Invokes the HTTP application within an ErrorControlChain
|
@ -1,9 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace SilverStripe\Core;
|
namespace SilverStripe\Control;
|
||||||
|
|
||||||
use SilverStripe\Control\HTTPRequest;
|
|
||||||
use SilverStripe\Control\HTTPResponse;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HTTP Request middleware
|
* HTTP Request middleware
|
@ -26,7 +26,7 @@ class ConfigLoader
|
|||||||
*/
|
*/
|
||||||
public static function inst()
|
public static function inst()
|
||||||
{
|
{
|
||||||
return self::$instance ? self::$instance : self::$instance = new self();
|
return self::$instance ? self::$instance : self::$instance = new static();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -92,7 +92,7 @@ class ConfigLoader
|
|||||||
$manifest = clone $this->getManifest();
|
$manifest = clone $this->getManifest();
|
||||||
|
|
||||||
// Create new blank loader with new stack (top level nesting)
|
// Create new blank loader with new stack (top level nesting)
|
||||||
$newLoader = new self;
|
$newLoader = new static;
|
||||||
$newLoader->pushManifest($manifest);
|
$newLoader->pushManifest($manifest);
|
||||||
|
|
||||||
// Activate new loader
|
// Activate new loader
|
||||||
|
@ -25,7 +25,7 @@ class InjectorLoader
|
|||||||
*/
|
*/
|
||||||
public static function inst()
|
public static function inst()
|
||||||
{
|
{
|
||||||
return self::$instance ? self::$instance : self::$instance = new self();
|
return self::$instance ? self::$instance : self::$instance = new static();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -91,7 +91,7 @@ class InjectorLoader
|
|||||||
$manifest = $this->getManifest()->nest();
|
$manifest = $this->getManifest()->nest();
|
||||||
|
|
||||||
// Create new blank loader with new stack (top level nesting)
|
// Create new blank loader with new stack (top level nesting)
|
||||||
$newLoader = new self;
|
$newLoader = new static;
|
||||||
$newLoader->pushManifest($manifest);
|
$newLoader->pushManifest($manifest);
|
||||||
|
|
||||||
// Activate new loader
|
// Activate new loader
|
||||||
|
@ -30,7 +30,7 @@ class ClassLoader
|
|||||||
*/
|
*/
|
||||||
public static function inst()
|
public static function inst()
|
||||||
{
|
{
|
||||||
return self::$instance ? self::$instance : self::$instance = new self();
|
return self::$instance ? self::$instance : self::$instance = new static();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -22,7 +22,7 @@ class ModuleLoader
|
|||||||
*/
|
*/
|
||||||
public static function inst()
|
public static function inst()
|
||||||
{
|
{
|
||||||
return self::$instance ? self::$instance : self::$instance = new self();
|
return self::$instance ? self::$instance : self::$instance = new static();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7,7 +7,7 @@ use SilverStripe\Control\HTTPRequest;
|
|||||||
use SilverStripe\Control\HTTPResponse;
|
use SilverStripe\Control\HTTPResponse;
|
||||||
use SilverStripe\Control\HTTPResponse_Exception;
|
use SilverStripe\Control\HTTPResponse_Exception;
|
||||||
use SilverStripe\Core\Application;
|
use SilverStripe\Core\Application;
|
||||||
use SilverStripe\Core\HTTPMiddleware;
|
use SilverStripe\Control\HTTPMiddleware;
|
||||||
use SilverStripe\Security\Permission;
|
use SilverStripe\Security\Permission;
|
||||||
use SilverStripe\Security\Security;
|
use SilverStripe\Security\Security;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ use Exception;
|
|||||||
use SilverStripe\Control\HTTPRequest;
|
use SilverStripe\Control\HTTPRequest;
|
||||||
use SilverStripe\Control\Session;
|
use SilverStripe\Control\Session;
|
||||||
use SilverStripe\Core\CoreKernel;
|
use SilverStripe\Core\CoreKernel;
|
||||||
use SilverStripe\Core\HTTPApplication;
|
use SilverStripe\Control\HTTPApplication;
|
||||||
use SilverStripe\Core\Kernel;
|
use SilverStripe\Core\Kernel;
|
||||||
use SilverStripe\Core\Startup\ParameterConfirmationToken;
|
use SilverStripe\Core\Startup\ParameterConfirmationToken;
|
||||||
use SilverStripe\ORM\DatabaseAdmin;
|
use SilverStripe\ORM\DatabaseAdmin;
|
||||||
|
@ -14,7 +14,7 @@ use SilverStripe\Control\Email\Email;
|
|||||||
use SilverStripe\Control\Email\Mailer;
|
use SilverStripe\Control\Email\Mailer;
|
||||||
use SilverStripe\Control\HTTPRequest;
|
use SilverStripe\Control\HTTPRequest;
|
||||||
use SilverStripe\Core\Config\Config;
|
use SilverStripe\Core\Config\Config;
|
||||||
use SilverStripe\Core\HTTPApplication;
|
use SilverStripe\Control\HTTPApplication;
|
||||||
use SilverStripe\Core\Injector\Injector;
|
use SilverStripe\Core\Injector\Injector;
|
||||||
use SilverStripe\Core\Injector\InjectorLoader;
|
use SilverStripe\Core\Injector\InjectorLoader;
|
||||||
use SilverStripe\Core\Manifest\ClassLoader;
|
use SilverStripe\Core\Manifest\ClassLoader;
|
||||||
|
Loading…
Reference in New Issue
Block a user