diff --git a/src/DependencyInjection/DbpRelayCoreExtension.php b/src/DependencyInjection/DbpRelayCoreExtension.php index 3bf82d3d42213a29864929a932031ca44767f421..ac9bcd9721c755b5068dfb57a3481923f8314a7f 100644 --- a/src/DependencyInjection/DbpRelayCoreExtension.php +++ b/src/DependencyInjection/DbpRelayCoreExtension.php @@ -171,6 +171,7 @@ class DbpRelayCoreExtension extends ConfigurableExtension implements PrependExte 'app_buildinfo' => $config['build_info'] ?? '', 'app_buildinfo_url' => $config['build_info_url'] ?? '', 'logo_path' => $config['logo_path'] ?? 'bundles/dbprelaycore/logo.png', + 'favicon_path' => $config['favicon_path'] ?? 'bundles/dbprelaycore/apple-touch-icon.png', 'app_env' => '%kernel.environment%', 'app_debug' => '%kernel.debug%', ]), diff --git a/src/Resources/ApiPlatformBundle/SwaggerUi/index.html.twig b/src/Resources/ApiPlatformBundle/SwaggerUi/index.html.twig index 49beb5b56c303da902d629df40ebe879c8e6459d..6dfa2bd8019f316245d8a71acb5c96fce2e64712 100644 --- a/src/Resources/ApiPlatformBundle/SwaggerUi/index.html.twig +++ b/src/Resources/ApiPlatformBundle/SwaggerUi/index.html.twig @@ -9,6 +9,7 @@ <link rel="stylesheet" href="{{ asset('bundles/apiplatform/style.css', assetPackage) }}"> <link rel="stylesheet" href="{{ asset('bundles/dbprelaycore/fonts/fonts.css', assetPackage) }}"> <link rel="stylesheet" href="{{ asset('bundles/dbprelaycore/style.css', assetPackage) }}"> + <link rel="icon" href="{{ asset(favicon_path, assetPackage) }}"> <style> #swagger-ui.api-platform .info .title { diff --git a/src/Resources/public/apple-touch-icon.png b/src/Resources/public/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..9c5c76d620fe16363f7b4b6d11e70c4108f3e1d9 Binary files /dev/null and b/src/Resources/public/apple-touch-icon.png differ