Commit 0f763760 authored by Andrea Ruggiero's avatar Andrea Ruggiero
Browse files

fix

parent 5917f39a
Pipeline #1550 failed with stage
in 0 seconds
......@@ -138,11 +138,6 @@ class EventController extends Controller
"date" => $event->date,
"start" => $event->start,
"end" => $event->end,
"place" => $event->place,
"address" => $event->address,
"latitude" => $event->latitude,
"longitude" => $event->longitude,
"capacity" => $event->capacity,
"type" => $event->type,
"theme" => $event->theme,
"bookings" => count($bookingRepository->getBookingsByEvent($event->event_id))
......
......@@ -3,6 +3,7 @@
use App\Application;
use app\Repositories\AccomodationRepository;
use App\Repositories\EventRepository;
use App\Repositories\PlaceRepository;
use App\Repositories\RestaurantRepository;
use App\Repositories\SessionRepository;
use App\Repositories\UserRepository;
......@@ -75,6 +76,10 @@ $app->singleton('AccomodationRepository', function ($app) {
return new AccomodationRepository($app('db'));
});
$app->singleton('PlaceRepository', function ($app) {
return new PlaceRepository($app('db'));
});
$app->singleton('Application', function ($app) {
return new Application();
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment