- Add Utils/L10n class - Add translator functions to PHP Renderer - Refactor web controllers to prevent duplicated code - Add locale middleware - Add translation file loading - Add i18n settings
22 lines
547 B
PHP
22 lines
547 B
PHP
<?php
|
|
|
|
namespace Friendica\Directory\Routes\Web;
|
|
|
|
/**
|
|
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
|
*/
|
|
class Search extends BaseRoute
|
|
{
|
|
public function __construct(\Slim\Container $container)
|
|
{
|
|
parent::__construct($container);
|
|
|
|
$this->controller = new \Friendica\Directory\Controllers\Web\Search(
|
|
$this->container->atlas,
|
|
$this->container->get('\Friendica\Directory\Models\Profile'),
|
|
$this->container->get('\Friendica\Directory\Views\Widget\AccountTypeTabs'),
|
|
$this->container->renderer,
|
|
$this->container->l10n
|
|
);
|
|
}
|
|
}
|