JonathanTorres\Construct\Helpers\Filesystem::get PHP Method

get() public method

Get the contents of a file.
public get ( string $path ) : string
$path string
return string
    public function get($path)
    {
        return file_get_contents($path);
    }

Usage Example

Beispiel #1
0
 /**
  * Generate phpspec file/settings.
  *
  * @return void
  */
 protected function phpspec()
 {
     $this->testingVersion = '~2.0';
     $file = $this->file->get(__DIR__ . '/stubs/phpspec.stub');
     $content = str_replace('{namespace}', $this->createNamespace(), $file);
     $this->file->put($this->projectLower . '/' . 'phpspec.yml', $content);
     $this->exportIgnores[] = 'phpspec.yml';
 }
All Usage Examples Of JonathanTorres\Construct\Helpers\Filesystem::get