X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/laravel/prompts/src/Concerns
home
/
prisjneg
/
public_html
/
vendor
/
laravel
/
prompts
/
src
/
Concerns
/
📁
..
📄
Colors.php
(3.76 KB)
📄
Cursor.php
(1.53 KB)
📄
Erase.php
(611 B)
📄
Events.php
(753 B)
📄
FakesInputOutput.php
(2.66 KB)
📄
Fallback.php
(1.4 KB)
📄
Interactivity.php
(761 B)
📄
Scrolling.php
(2.92 KB)
📄
Termwind.php
(525 B)
📄
Themes.php
(3.78 KB)
📄
Truncation.php
(2.84 KB)
📄
TypedValue.php
(4.87 KB)
Editing: Events.php
<?php namespace Laravel\Prompts\Concerns; use Closure; trait Events { /** * The registered event listeners. * * @var array<string, array<int, Closure>> */ protected array $listeners = []; /** * Register an event listener. */ public function on(string $event, Closure $callback): void { $this->listeners[$event][] = $callback; } /** * Emit an event. */ public function emit(string $event, mixed ...$data): void { foreach ($this->listeners[$event] ?? [] as $listener) { $listener(...$data); } } /** * Clean the event listeners. */ public function clearListeners(): void { $this->listeners = []; } }
Upload File
Create Folder