Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>tags/v26.0.0beta1
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -3,7 +3,7 @@ | |||
'name' => '__root__', | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), | |||
@@ -13,7 +13,7 @@ | |||
'__root__' => array( | |||
'pretty_version' => 'dev-master', | |||
'version' => 'dev-master', | |||
'reference' => 'f13629cf4a091f0d7307e4daed15eae31acf1134', | |||
'reference' => 'd51429a47232bbf46a2be832ecfa711f102da802', | |||
'type' => 'library', | |||
'install_path' => __DIR__ . '/../', | |||
'aliases' => array(), |
@@ -42,6 +42,9 @@ namespace Composer\Autoload; | |||
*/ | |||
class ClassLoader | |||
{ | |||
/** @var \Closure(string):void */ | |||
private static $includeFile; | |||
/** @var ?string */ | |||
private $vendorDir; | |||
@@ -106,6 +109,7 @@ class ClassLoader | |||
public function __construct($vendorDir = null) | |||
{ | |||
$this->vendorDir = $vendorDir; | |||
self::initializeIncludeClosure(); | |||
} | |||
/** | |||
@@ -425,7 +429,7 @@ class ClassLoader | |||
public function loadClass($class) | |||
{ | |||
if ($file = $this->findFile($class)) { | |||
includeFile($file); | |||
(self::$includeFile)($file); | |||
return true; | |||
} | |||
@@ -555,18 +559,23 @@ class ClassLoader | |||
return false; | |||
} | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
* @private | |||
*/ | |||
function includeFile($file) | |||
{ | |||
include $file; | |||
private static function initializeIncludeClosure(): void | |||
{ | |||
if (self::$includeFile !== null) { | |||
return; | |||
} | |||
/** | |||
* Scope isolated include. | |||
* | |||
* Prevents access to $this/self from included files. | |||
* | |||
* @param string $file | |||
* @return void | |||
*/ | |||
self::$includeFile = static function($file) { | |||
include $file; | |||
}; | |||
} | |||
} |
@@ -22,6 +22,8 @@ class ComposerAutoloaderInit749170dad3f5e7f9ca158f5a9f04f6a2 | |||
return self::$loader; | |||
} | |||
require __DIR__ . '/platform_check.php'; | |||
spl_autoload_register(array('ComposerAutoloaderInit749170dad3f5e7f9ca158f5a9f04f6a2', 'loadClassLoader'), true, true); | |||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); | |||
spl_autoload_unregister(array('ComposerAutoloaderInit749170dad3f5e7f9ca158f5a9f04f6a2', 'loadClassLoader')); |
@@ -0,0 +1,26 @@ | |||
<?php | |||
// platform_check.php @generated by Composer | |||
$issues = array(); | |||
if (!(PHP_VERSION_ID >= 80000)) { | |||
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.0.0". You are running ' . PHP_VERSION . '.'; | |||
} | |||
if ($issues) { | |||
if (!headers_sent()) { | |||
header('HTTP/1.1 500 Internal Server Error'); | |||
} | |||
if (!ini_get('display_errors')) { | |||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { | |||
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); | |||
} elseif (!headers_sent()) { | |||
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; | |||
} | |||
} | |||
trigger_error( | |||
'Composer detected issues in your platform: ' . implode(' ', $issues), | |||
E_USER_ERROR | |||
); | |||
} |