public static function getInstance() { if (!self::$instance) { $kernelName = php_uname('s'); self::$instance = new static(self::createPlatform($kernelName)); } return self::$instance; }