original_string: public function register($name, ?callable $callback = null): AuthorizationContract
      {
          if (\is_callable($name)) {
              $callback = $name;
              $name = null;
          }
  
          $instance = $this->make($name);
  
          $callback($instance);
  
          return $instance;
      }
code: public function register($name, ?callable $callback = null): AuthorizationContract
      {
          if (\is_callable($name)) {
              $callback = $name;
              $name = null;
          }
  
          $instance = $this->make($name);
  
          $callback($instance);
  
          return $instance;
      }
code_tokens: public function register ( $ name , ? callable $ callback = null ) : AuthorizationContract { if ( \ is_callable ( $ name ) ) { $ callback = $ name ; $ name = null ; } $ instance = $ this -> make ( $ name ) ; $ callback ( $ instance ) ; return $ instance ; }
docstring: Register an ACL Container instance with Closure.
  
  @param  string  $name
  @param  callable|null  $callback
  
  @return \Orchestra\Contracts\Authorization\Authorization
docstring_tokens: Register an ACL Container instance with Closure .