<?php array_unique(array $array, int $flags = SORT_STRING): array
<?php $dispatcher = $this->app[Dispatcher::class]; foreach ($this->app['config']->get('octane.listeners', []) as $event => $listeners) { foreach (array_filter(array_unique($listeners)) as $listener) { $dispatcher->listen($event, $listener); } }