first commit
This commit is contained in:
commit
e81864e683
2984 files changed
+267797
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace In2code\Femanager\DataProvider;
|
||||
|
||||
use SJBR\StaticInfoTables\Domain\Model\Country;
|
||||
use SJBR\StaticInfoTables\Domain\Repository\CountryRepository;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
class CountryDataProvider
|
||||
{
|
||||
protected $countryRepository;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->countryRepository = GeneralUtility::makeInstance(CountryRepository::class);
|
||||
}
|
||||
|
||||
/** @return Country[] */
|
||||
public function getCountries(): array
|
||||
{
|
||||
return $this->countryRepository->findAllOrderedBy('shortNameLocal')->toArray();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user