WIP: Implement even more stuff

This commit is contained in:
Björn Fromme committed 2023-10-04 17:54:35 +02:00
1 parent cc1ab396af
commit 96d6170907
31 files changed
+874 -68

No files matched your search

@@ -2,7 +2,7 @@
namespace App\Form\ChoiceLoader;
use App\BusProNet\DataProvider\Countries;
use App\BusProNet\DataProvider\CountryDataProvider;
use App\BusProNet\Model\Country;
use Symfony\Component\Form\ChoiceList\ArrayChoiceList;
use Symfony\Component\Form\ChoiceList\ChoiceListInterface;
@@ -10,7 +10,7 @@ use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface;
class BpnCountryChoiceLoader implements ChoiceLoaderInterface
{
public function __construct(private readonly Countries $countries, private readonly string $property)
public function __construct(private readonly CountryDataProvider $countries, private readonly string $property)
{}
public function loadChoiceList(callable $value = null): ChoiceListInterface