@@ 49-57 (lines=9) @@ | ||
46 | * @return $this |
|
47 | * @throws \Exception |
|
48 | */ |
|
49 | public function setBasePath($path) |
|
50 | { |
|
51 | if (!is_dir($path)) { |
|
52 | throw new \Exception("Base path for file content is not a directory: " . $path); |
|
53 | } |
|
54 | $this->path = rtrim($path, '/') . '/'; |
|
55 | ||
56 | return $this; |
|
57 | } |
|
58 | } |
|
59 |
@@ 121-127 (lines=7) @@ | ||
118 | * @return $this |
|
119 | * @throws \Exception |
|
120 | */ |
|
121 | public function setBasePath($path) |
|
122 | { |
|
123 | if (!is_dir($path)) { |
|
124 | throw new \Exception("Base path for views is not a directory: " . $path); |
|
125 | } |
|
126 | $this->path = rtrim($path, '/') . '/'; |
|
127 | } |
|
128 | ||
129 | ||
130 |