<?php

namespace Opentalent\OtCore\Controller;

use Opentalent\OtCore\Website\OtPageRepository;

/**
 * Base class for all controllers of backend modules
 *
 * Class ActionController
 */
class ActionController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
{
    /**
     * @var OtPageRepository
     */
    protected OtPageRepository $otPageRepository;

    public function injectOtPageRepository(OtPageRepository $otPageRepository) {
        $this->otPageRepository = $otPageRepository;
    }

    /**
     * Returns the language service.
     *
     * @return \TYPO3\CMS\Core\Localization\LanguageService
     */
    protected function getLanguageService()
    {
        return $GLOBALS['LANG'];
    }
}
