3 declare(strict_types
=1);
5 namespace Shaarli\Front\Controller\Admin
;
8 use Slim\Http\Response
;
11 * Class ToolsController
13 * Slim controller used to display the tools page.
15 class ToolsController
extends ShaarliAdminController
17 public function index(Request
$request, Response
$response): Response
20 'pageabsaddr' => index_url($this->container
->environment
),
21 'sslenabled' => is_https($this->container
->environment
),
24 $this->executeHooks($data);
26 foreach ($data as $key => $value) {
27 $this->assignView($key, $value);
30 $this->assignView('pagetitle', t('Tools') .' - '. $this->container
->conf
->get('general.title', 'Shaarli'));
32 return $response->write($this->render('tools'));
36 * @param mixed[] $data Variables passed to the template engine
38 * @return mixed[] Template data after active plugins render_picwall hook execution.
40 protected function executeHooks(array $data): array
42 $this->container
->pluginManager
->executeHooks(