database.sqlite missing. Run docker compose
docker compose exec php-app php index.php app:migrateto create it.'); } $productRoute = new Route('/product/{product_id}', ['_controller' => ProductController::class], ['product_id' => '\d+']); $searchRoute = new Route('/?search={search_term}', ['_controller' => SearchController::class]); $categoryRoute = new Route('/category/{category_name}', ['_controller' => CategoryController::class]); $starRoute = new Route('/star/{product_id}', ['_controller' => StarController::class]); $indexRoute = new Route('/', ['_controller' => IndexController::class]); $routes = new RouteCollection(); $routes->add('product_show', $productRoute); $routes->add('search_show', $searchRoute); $routes->add('category_show', $categoryRoute); $routes->add('start_show', $starRoute); $routes->add('index_show', $indexRoute); $context = new RequestContext(); $matcher = new UrlMatcher($routes, $context); try { $parameters = $matcher->match($_SERVER['REQUEST_URI']); } catch (Exception $e) { die($e->getMessage()); } match ($parameters['_controller']) { SearchController::class => (new $parameters['_controller']())($parameters['search_term']), CategoryController::class => (new $parameters['_controller']())($parameters['category_name']), ProductController::class, StarController::class => (new $parameters['_controller']())($parameters['product_id']), IndexController::class => (new $parameters['_controller']())(), default => throw new Exception('Route not found') };