parent::__construct($app, $l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
$this->database = $database;
- $this->config = $config;
+ $this->config = $config;
}
/**
*/
public function __construct(IManageConfigValues $config, BaseURL $baseUrl, Database $database, array $rules = [])
{
- $this->domain = $baseUrl->getHostname();
- $this->title = $config->get('config', 'sitename');
- $this->version = '2.8.0 (compatible; Friendica ' . App::VERSION . ')';
- $this->source_url = null; //not supported yet
- $this->description = $config->get('config', 'info');
- $this->usage = new Usage($config);
- $this->thumbnail = new Thumbnail($baseUrl);
- $this->languages = [$config->get('system', 'language')];
- $this->configuration = new Configuration();
- $this->registrations = new Registrations();
- $this->contact = new Contact($database);
- $this->rules = $rules;
- $this->friendica = new FriendicaExtensions();
+ $this->domain = $baseUrl->getHostname();
+ $this->title = $config->get('config', 'sitename');
+ $this->version = '2.8.0 (compatible; Friendica ' . App::VERSION . ')';
+ $this->source_url = null; //not supported yet
+ $this->description = $config->get('config', 'info');
+ $this->usage = new Usage($config);
+ $this->thumbnail = new Thumbnail($baseUrl);
+ $this->languages = [$config->get('system', 'language')];
+ $this->configuration = new Configuration();
+ $this->registrations = new Registrations();
+ $this->contact = new Contact($database);
+ $this->rules = $rules;
+ $this->friendica = new FriendicaExtensions();
}
}
public function __construct(Database $database)
{
- $this->email = implode(',', User::getAdminEmailList());
+ $this->email = implode(',', User::getAdminEmailList());
$administrator = User::getFirstAdmin();
if ($administrator) {
$adminContact = $database->selectFirst(
public function __construct()
{
- $config = DI::config();
- $register_policy = intval($config->get('config', 'register_policy'));
- $this->enabled = ($register_policy != Register::CLOSED);
+ $config = DI::config();
+ $register_policy = intval($config->get('config', 'register_policy'));
+ $this->enabled = ($register_policy != Register::CLOSED);
$this->approval_required = ($register_policy == Register::APPROVE);
}
}