whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
opcodesio
/
log-viewer
/
src
/
Concerns
/
LogReader
/
Upload File:
files >> //home/kckglobal/www/portal/vendor/opcodesio/log-viewer/src/Concerns/LogReader/KeepsInstances.php
<?php namespace Opcodes\LogViewer\Concerns\LogReader; use Opcodes\LogViewer\LogFile; trait KeepsInstances { /** * Cached LogReader instances. */ public static array $_instances = []; public static function instance(LogFile $file): static { if (! isset(static::$_instances[$file->path])) { static::$_instances[$file->path] = new static($file); } return static::$_instances[$file->path]; } public static function clearInstance(LogFile $file): void { if (isset(static::$_instances[$file->path])) { unset(static::$_instances[$file->path]); } } public static function clearInstances(): void { static::$_instances = []; } }
Copyright ©2021 || Defacer Indonesia