/** * Load the raw service provider file. * * @param bool $plain * @return string */ protected function getProviderFile($plain) { if ($plain) { return $this->files->get(__DIR__ . '/stubs/plain.provider.stub'); } else { return $this->files->get(__DIR__ . '/stubs/provider.stub'); } }
/** * get content of a file * * @param string $path * @return srting */ protected function getContent($path) { return PHP_EOL . $this->files->get($path); }