File: D:/HostingSpaces/SBogers33/broosensterck.nl/workbench/komma/kms/src/Komma/Kms/Core/Kms.php
<?php
/**
* Short description for the file.
*
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2015, Komma Mediadesign
*/
namespace Komma\Kms\Core;
use Illuminate\Routing\Router;
use Komma\Kms\Languages\Language;
class Kms
{
protected $router;
function __construct(Router $router)
{
$this->router = $router;
}
public function getDefaultLanguageId()
{
return \Config::get('kms::main.defaultLanguageId');
}
public function getDefaultLanguage()
{
return \Config::get('kms::main.defaultLanguage');
}
public function getCurrentLanguages()
{
return Language::whereIn('id',\Config::get('kms::main.currentLanguages'))->get();
}
}