mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-18 05:58:18 +01:00
40 lines
883 B
PHP
40 lines
883 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Cachet.
|
|
*
|
|
* (c) Alt Three Services Limited
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace CachetHQ\Cachet\Presenters;
|
|
|
|
use Illuminate\Contracts\Support\Arrayable;
|
|
use McCool\LaravelAutoPresenter\BasePresenter as BaseLaravelAutoPresenter;
|
|
|
|
abstract class AbstractPresenter extends BaseLaravelAutoPresenter implements Arrayable
|
|
{
|
|
/**
|
|
* The setting repository.
|
|
*
|
|
* @var \CachetHQ\Cachet\Config\Repository
|
|
*/
|
|
protected $setting;
|
|
|
|
/**
|
|
* Create an abstract presenter instance.
|
|
*
|
|
* @param \Illuminate\Database\Eloquent\Model $resource
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($resource)
|
|
{
|
|
parent::__construct($resource);
|
|
|
|
$this->setting = app('setting');
|
|
}
|
|
}
|