public function generatePackageServiceProvider($config)
    {
        $provider = $this->fileService->get(__DIR__.'/../Templates/Provider.txt');

        foreach ($config as $key => $value) {
            $provider = str_replace($key, $value, $provider);
        }

        $provider = $this->putIfNotExists($config['_path_package_'].'/'.$config['_camel_case_'].'ServiceProvider.php', $provider);

        return $provider;
    }
public function generatePackageServiceProvider($config)
    {
        $provider = $this->fileService->get(__DIR__.'/../Templates/Provider.txt');

        foreach ($config as $key => $value) {
            $provider = str_replace($key, $value, $provider);
        }

        $provider = $this->putIfNotExists($config['_path_package_'].'/'.$config['_camel_case_'].'ServiceProvider.php', $provider);

        return $provider;
    }
public function generatePackageServiceProvider ( $ config ) { $ provider = $ this -> fileService -> get ( __DIR__ . '/../Templates/Provider.txt' ) ; foreach ( $ config as $ key => $ value ) { $ provider = str_replace ( $ key , $ value , $ provider ) ; } $ provider = $ this -> putIfNotExists ( $ config [ '_path_package_' ] . '/' . $ config [ '_camel_case_' ] . 'ServiceProvider.php' , $ provider ) ; return $ provider ; }
Create a service provider.

@param array $config

@return bool
Create a service provider .