Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
/**
4
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
7
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
9
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
10
 * THE SOFTWARE.
11
 *
12
 * This software consists of voluntary contributions made by many individuals
13
 * and is licensed under the MIT license.
14
 *
15
 * Copyright (c) 2014-2022 Yuuki Takezawa
16
 *
17
 */
18
 
19
declare(strict_types=1);
20
 
21
namespace Ytake\LaravelSmarty;
22
 
23
use Illuminate\Contracts\View\Factory;
24
 
25
/**
26
 * Class Smarty
27
 *
28
 * @author  yuuki.takezawa<yuuki.takezawa@comnect.jp.net>
29
 * @license http://opensource.org/licenses/MIT MIT
30
 */
31
final class Smarty extends \Smarty
32
{
33
    /** @var Factory */
34
    protected Factory $viewFactory;
35
 
36
    /**
37
     * @param Factory $factory
38
     */
39
    public function setViewFactory(Factory $factory): void
40
    {
41
        $this->viewFactory = $factory;
42
    }
43
 
44
    /**
45
     * @return Factory
46
     */
47
    public function getViewFactory(): Factory
48
    {
49
        return $this->viewFactory;
50
    }
51
}