<commit_before><?php

namespace PSFS\controller\base;

use PSFS\base\config\Config;
use PSFS\base\config\LoginForm;
use PSFS\base\Router;
use PSFS\base\Template;
use PSFS\base\types\AuthAdminController;
use PSFS\controller\UserController;
use PSFS\services\AdminServices;

/**
 * Class Admin
 * @package PSFS\controller
 * @domain ROOT
 */
class Admin extends AuthAdminController{

    const DOMAIN = 'ROOT';

    /**
     * @Inyectable
     * @var \PSFS\base\config\Config Configuration service
     */
    protected $config;
    /**
     * @Inyectable
     * @var \PSFS\services\AdminServices Admin service
     */
    protected $srv;

    /**
     * Wrapper de asignación de los menus
     * @return array
     */
    protected function getMenu() {
        return Router::getInstance()->getAdminRoutes();
    }

    /**
     * Método estático de login de administrador
     * @param string $route
     * @return string HTML
     * @throws \PSFS\base\exception\FormException
     */
    public static function staticAdminLogon($route = null) {<commit_msg>Abstract admin base class<commit_after><?php

namespace PSFS\controller\base;

use PSFS\base\config\Config;
use PSFS\base\config\LoginForm;
use PSFS\base\Router;
use PSFS\base\Template;
use PSFS\base\types\AuthAdminController;
use PSFS\controller\UserController;
use PSFS\services\AdminServices;

/**
 * Class Admin
 * @package PSFS\controller
 * @domain ROOT
 */
abstract class Admin extends AuthAdminController{

    const DOMAIN = 'ROOT';

    /**
     * @Inyectable
     * @var \PSFS\base\config\Config Configuration service
     */
    protected $config;
    /**
     * @Inyectable
     * @var \PSFS\services\AdminServices Admin service
     */
    protected $srv;

    /**
     * Wrapper de asignación de los menus
     * @return array
     */
    protected function getMenu() {
        return Router::getInstance()->getAdminRoutes();
    }

    /**
     * Método estático de login de administrador
     * @param string $route
     * @return string HTML
     * @throws \PSFS\base\exception\FormException
     */
    public static function staticAdminLogon($route = null) {
{'fraction_non_alphanumeric': 0.11241217798594848, 'fraction_numerical': 0.0, 'mean_word_length': 2.8625678119349005, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6620174', 'n_tokens_mistral': 649, 'n_tokens_neox': 644, 'n_words': 156}