src/Core/PluginsRepository.php
public function load(array $directories)
    {
        $manifest = $this->loadManifest();

        if ($this->shouldRecompile($manifest, $directories)) {
            $manifest = $this->compileManifest($directories);
        }

        // Load plugins defined in the manifest.
        // Dispatch an event with loaded plugin data.
        foreach ($manifest as $plugin => $headers) {
            $path = sprintf('%s/%s', $plugin, $headers['root']);
            $this->app->registerPlugin($path);
            $this->app['events']->dispatch(
                new PluginLoaded($plugin, $headers)
            );
        }
    }
public function load(array $directories)
    {
        $manifest = $this->loadManifest();

        if ($this->shouldRecompile($manifest, $directories)) {
            $manifest = $this->compileManifest($directories);
        }

        // Load plugins defined in the manifest.
        // Dispatch an event with loaded plugin data.
        foreach ($manifest as $plugin => $headers) {
            $path = sprintf('%s/%s', $plugin, $headers['root']);
            $this->app->registerPlugin($path);
            $this->app['events']->dispatch(
                new PluginLoaded($plugin, $headers)
            );
        }
    }
public function load ( array $ directories ) { $ manifest = $ this -> loadManifest ( ) ; if ( $ this -> shouldRecompile ( $ manifest , $ directories ) ) { $ manifest = $ this -> compileManifest ( $ directories ) ; } // Load plugins defined in the manifest. // Dispatch an event with loaded plugin data. foreach ( $ manifest as $ plugin => $ headers ) { $ path = sprintf ( '%s/%s' , $ plugin , $ headers [ 'root' ] ) ; $ this -> app -> registerPlugin ( $ path ) ; $ this -> app [ 'events' ] -> dispatch ( new PluginLoaded ( $ plugin , $ headers ) ) ; } }
Load application must-use plugins.

@param array $directories

@throws \Illuminate\Contracts\Filesystem\FileNotFoundException
@throws Exception
Load application must - use plugins .