Move HTTPApplication to SilverStripe\Control namespace

This commit is contained in:
Damian Mooyman 2017-06-21 17:07:11 +12:00
parent e2c4a18f63
commit 5b59a912b6
10 changed files with 15 additions and 19 deletions

View File

@ -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';

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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();
} }
/** /**

View File

@ -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();
} }
/** /**

View File

@ -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;

View File

@ -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;

View File

@ -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;