WIP: Implement profile editing
This commit is contained in:
@@ -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