aboutsummaryrefslogblamecommitdiffhomepage
path: root/plugins/demo_plugin/DemoPluginController.php
blob: b8ace9c807f1caee0424748e3e18bd9390194a52 (plain) (tree)























                                                                                                                     
<?php

declare(strict_types=1);

namespace Shaarli\DemoPlugin;

use Shaarli\Front\Controller\Admin\ShaarliAdminController;
use Slim\Http\Request;
use Slim\Http\Response;

class DemoPluginController extends ShaarliAdminController
{
    public function index(Request $request, Response $response): Response
    {
        $this->assignView(
            'content',
            '<div class="center">' .
                'This is a demo page. I have access to Shaarli container, so I\'m free to do whatever I want here.' .
            '</div>'
        );

        return $response->write($this->render('pluginscontent'));
    }
}