WIP: Implement profile editing
This commit is contained in:
1 parent
d776d37cd5
commit
953aa9c8e0
27 files changed
+598
-43
No files matched your search
@@ -4,6 +4,7 @@ namespace App\BusProNet\DataProvider;
|
||||
|
||||
use App\BusProNet\ApiClient;
|
||||
use App\BusProNet\ApiClientException;
|
||||
use App\BusProNet\Model\Country;
|
||||
use Symfony\Contracts\Cache\CacheInterface;
|
||||
use Symfony\Contracts\Cache\ItemInterface;
|
||||
|
||||
@@ -30,4 +31,9 @@ class Countries
|
||||
|
||||
return $countries;
|
||||
}
|
||||
|
||||
public function get(int $id): ?Country
|
||||
{
|
||||
return $this->getAll()[$id] ?? null;
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ namespace App\BusProNet\DataProvider;
|
||||
|
||||
use App\BusProNet\ApiClient;
|
||||
use App\BusProNet\ApiClientException;
|
||||
use App\BusProNet\Model\Pickup;
|
||||
use Symfony\Contracts\Cache\CacheInterface;
|
||||
use Symfony\Contracts\Cache\ItemInterface;
|
||||
|
||||
@@ -29,6 +30,10 @@ class Pickups
|
||||
}
|
||||
|
||||
return $pickups;
|
||||
}
|
||||
|
||||
public function get(int $busProId): ?Pickup
|
||||
{
|
||||
return $this->getAll()[$busProId] ?? null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user