classes/BearCMS/Addons.php
public function register(string $id, callable $callback): self
    {
        Internal\Data\Addons::$registrations[$id] = $callback;
        return $this;
    }
public function register(string $id, callable $callback): self
    {
        Internal\Data\Addons::$registrations[$id] = $callback;
        return $this;
    }
public function register ( string $ id , callable $ callback ) : self { Internal \ Data \ Addons :: $ registrations [ $ id ] = $ callback ; return $ this ; }
Register a new addon.

@param string $id The addon ID.
@param callable $callback A function to define addon parameters.
@return self Returns a reference to itself.
Register a new addon .