public function register($name, ?callable $callback = null): AuthorizationContract
    {
        if (\is_callable($name)) {
            $callback = $name;
            $name = null;
        }

        $instance = $this->make($name);

        $callback($instance);

        return $instance;
    }
public function register($name, ?callable $callback = null): AuthorizationContract
    {
        if (\is_callable($name)) {
            $callback = $name;
            $name = null;
        }

        $instance = $this->make($name);

        $callback($instance);

        return $instance;
    }
public function register ( $ name , ? callable $ callback = null ) : AuthorizationContract { if ( \ is_callable ( $ name ) ) { $ callback = $ name ; $ name = null ; } $ instance = $ this -> make ( $ name ) ; $ callback ( $ instance ) ; return $ instance ; }
Register an ACL Container instance with Closure.

@param  string  $name
@param  callable|null  $callback

@return \Orchestra\Contracts\Authorization\Authorization
Register an ACL Container instance with Closure .