Commit 3f527cd4 authored by Nicolas Widart's avatar Nicolas Widart

Squashed 'Modules/Core/' changes from 09b7768..e713728

e713728 Add a base public controller which sets the theme

git-subtree-dir: Modules/Core
git-subtree-split: e713728f4f60dc2d6e2ec0d74927b18eff52dc66
parent 7a015f67
<?php namespace Modules\Core\Http\Controllers;
use Modules\Core\Contracts\Setting;
abstract class BasePublicController
{
/**
* @var string The active theme name
*/
public $theme;
/**
* @var Setting
*/
private $setting;
public function __construct(Setting $setting)
{
$this->setting = $setting;
$this->theme = $this->setting->get('core::template');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment