protected function configureContainer(ContainerBuilder $builder)
{
    $builder->useAnnotations(true);
    $builder->addDefinitions([

        'settings' => add(['debug' => DEBUG]),
        'settings.determineRouteBeforeAppMiddleware' => true,
        'settings.displayErrorDetails' => DEBUG,
        'settings.routerCacheFile' => DEBUG ? false : (BASE_DIR . '/cache/router.cache'),

        /* ... */
    ]);
}
Close Copy