src/Dispatcher.php
public function register(string $name, array $options): void
    {
        $this->registerExtensionHandles($name, $options);

        // Get available service providers from orchestra.json and register
        // it to Laravel. In this case all service provider would be eager
        // loaded since the application would require it from any action.
        $this->registerExtensionProviders($options);

        $this->registerExtensionPlugin($options);

        // Register the extension so we can boot it later, this action is
        // to allow all service providers to be registered first before we
        // start the extension. An extension might be using another extension
        // to work.
        $this->extensions[$name] = $options;

        $this->start($name, $options);
    }
public function register(string $name, array $options): void
    {
        $this->registerExtensionHandles($name, $options);

        // Get available service providers from orchestra.json and register
        // it to Laravel. In this case all service provider would be eager
        // loaded since the application would require it from any action.
        $this->registerExtensionProviders($options);

        $this->registerExtensionPlugin($options);

        // Register the extension so we can boot it later, this action is
        // to allow all service providers to be registered first before we
        // start the extension. An extension might be using another extension
        // to work.
        $this->extensions[$name] = $options;

        $this->start($name, $options);
    }
Register the extension.

@param  string  $name
@param  array   $options

@return void