-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAbstractValidator.php
More file actions
38 lines (32 loc) · 965 Bytes
/
Copy pathAbstractValidator.php
File metadata and controls
38 lines (32 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
namespace Fab\Formule\Validator;
/*
* This file is part of the Fab/Formule project under GPLv2 or later.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use Fab\Formule\Service\TemplateService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* Class AbstractValidator
*/
abstract class AbstractValidator implements ValidatorInterface
{
/**
* @return TemplateService|object
*/
protected function getTemplateService()
{
return GeneralUtility::makeInstance(TemplateService::class);
}
/**
* Returns an instance of the page repository.
*
* @return \TYPO3\CMS\Core\Domain\Repository\PageRepository
*/
protected function getPageRepository(): \TYPO3\CMS\Core\Domain\Repository\PageRepository
{
return GeneralUtility::makeInstance(\TYPO3\CMS\Core\Domain\Repository\PageRepository::class);
}
}