src/Rocketeer/Services/Ignition/PluginsIgniter.php
public function publish($plugins = null)
    {
        $plugins = $this->gatherLoadedPackagesHandles($plugins);
        foreach ($plugins as $plugin) {
            // Find the plugin's configuration
            $paths = $this->findPackageConfiguration($plugin);

            // Cancel if no valid paths
            $paths = array_filter($paths, [$this->files, 'isDirectory']);
            $paths = array_values($paths);
            if (empty($paths)) {
                $this->explainer->comment('No configuration found for '.$plugin);
                continue;
            }

            $this->publishConfiguration($paths[0]);
        }
    }
public function publish($plugins = null)
    {
        $plugins = $this->gatherLoadedPackagesHandles($plugins);
        foreach ($plugins as $plugin) {
            // Find the plugin's configuration
            $paths = $this->findPackageConfiguration($plugin);

            // Cancel if no valid paths
            $paths = array_filter($paths, [$this->files, 'isDirectory']);
            $paths = array_values($paths);
            if (empty($paths)) {
                $this->explainer->comment('No configuration found for '.$plugin);
                continue;
            }

            $this->publishConfiguration($paths[0]);
        }
    }
public function publish ( $ plugins = null ) { $ plugins = $ this -> gatherLoadedPackagesHandles ( $ plugins ) ; foreach ( $ plugins as $ plugin ) { // Find the plugin's configuration $ paths = $ this -> findPackageConfiguration ( $ plugin ) ; // Cancel if no valid paths $ paths = array_filter ( $ paths , [ $ this -> files , 'isDirectory' ] ) ; $ paths = array_values ( $ paths ) ; if ( empty ( $ paths ) ) { $ this -> explainer -> comment ( 'No configuration found for ' . $ plugin ) ; continue ; } $ this -> publishConfiguration ( $ paths [ 0 ] ) ; } }
Publishes a package's configuration.

@param string|string[] $plugins

@return bool|string|null
Publishes a package s configuration .