Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\View\Engines;
4
 
5
use Illuminate\Contracts\View\Engine;
6
use Illuminate\Filesystem\Filesystem;
7
 
8
class FileEngine implements Engine
9
{
10
    /**
11
     * The filesystem instance.
12
     *
13
     * @var \Illuminate\Filesystem\Filesystem
14
     */
15
    protected $files;
16
 
17
    /**
18
     * Create a new file engine instance.
19
     *
20
     * @param  \Illuminate\Filesystem\Filesystem  $files
21
     * @return void
22
     */
23
    public function __construct(Filesystem $files)
24
    {
25
        $this->files = $files;
26
    }
27
 
28
    /**
29
     * Get the evaluated contents of the view.
30
     *
31
     * @param  string  $path
32
     * @param  array  $data
33
     * @return string
34
     */
35
    public function get($path, array $data = [])
36
    {
37
        return $this->files->get($path);
38
    }
39
}