src/Dispatcher.php
public function start(string $name, array $options): void
    {
        $basePath = \rtrim($options['path'], '/');
        $sourcePath = \rtrim($options['source-path'] ?? $basePath, '/');

        $search = ['source-path::', 'app::/'];
        $replacement = ["{$sourcePath}/", 'app::'];

        // By now, extension should already exist as an extension. We should
        // be able start orchestra.php start file on each package.
        $this->getAutoloadFiles(Collection::make($options['autoload'] ?? []))
            ->each(function ($path) use ($search, $replacement) {
                $this->loadAutoloaderFile(\str_replace($search, $replacement, $path));
            });

        $this->fireEvent($name, $options, 'started');
    }
public function start(string $name, array $options): void
    {
        $basePath = \rtrim($options['path'], '/');
        $sourcePath = \rtrim($options['source-path'] ?? $basePath, '/');

        $search = ['source-path::', 'app::/'];
        $replacement = ["{$sourcePath}/", 'app::'];

        // By now, extension should already exist as an extension. We should
        // be able start orchestra.php start file on each package.
        $this->getAutoloadFiles(Collection::make($options['autoload'] ?? []))
            ->each(function ($path) use ($search, $replacement) {
                $this->loadAutoloaderFile(\str_replace($search, $replacement, $path));
            });

        $this->fireEvent($name, $options, 'started');
    }
Start the extension.

@param  string  $name
@param  array   $options

@return void