Example #1
0
 /**
  * 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');
     }
 }
Example #2
0
 /**
  * get content of a file
  *
  * @param string $path
  * @return srting
  */
 protected function getContent($path)
 {
     return PHP_EOL . $this->files->get($path);
 }