From 8c81adc8e83969e90b4c54daf4a396b1094134ff Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Thu, 31 Aug 2017 17:30:54 +0200 Subject: Implemented container --- src/Http/Request.php | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/Http') diff --git a/src/Http/Request.php b/src/Http/Request.php index f0235d45..e7850c8b 100644 --- a/src/Http/Request.php +++ b/src/Http/Request.php @@ -2,14 +2,10 @@ namespace Engelsystem\Http; -use ErrorException; use Symfony\Component\HttpFoundation\Request as SymfonyRequest; class Request extends SymfonyRequest { - /** @var self */ - protected static $instance; - /** * Get POST input * @@ -68,25 +64,4 @@ class Request extends SymfonyRequest { return rtrim(preg_replace('/\?.*/', '', $this->getUri()), '/'); } - - /** - * @return self - * @throws ErrorException - */ - public static function getInstance() - { - if (!self::$instance instanceof self) { - throw new ErrorException('Request not initialized'); - } - - return self::$instance; - } - - /** - * @param self $instance - */ - public static function setInstance($instance) - { - self::$instance = $instance; - } } -- cgit v1.2.3-54-g00ecf