KUJUNTI.ID MINISH3LL
Path : /var/www/html/master288-bk/vendor/facade/ignition/src/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/master288-bk/vendor/facade/ignition/src/Ignition.php


<?php

namespace Facade\Ignition;

use Closure;
use Facade\Ignition\Tabs\Tab;

class Ignition
{
    /** @var Closure[] */
    public static $callBeforeShowingErrorPage = [];

    /** @var array */
    public static $tabs = [];

    public static function tab(Tab $tab)
    {
        static::$tabs[] = $tab;
    }

    public static function styles(): array
    {
        return collect(static::$tabs)->flatMap(function ($tab) {
            return $tab->styles;
        })
            ->unique()
            ->toArray();
    }

    public static function scripts(): array
    {
        return collect(static::$tabs)->flatMap(function ($tab) {
            return $tab->scripts;
        })
            ->unique()
            ->toArray();
    }

    public static function registerAssets(Closure $callable)
    {
        static::$callBeforeShowingErrorPage[] = $callable;
    }
}

© KUJUNTI.ID