<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hallo Jens,</p>
<p>eine direkte Konfigurationsmöglichkeit dafür gibt es aktuell
nicht, aber die Funktionalität lässt sich in einem eigenen Bundle
mit relativ wenig Code umsetzen. Es muss dazu in einem Controller
die Route <font face="monospace">mapbender_core_welcome_list</font>
überschrieben werden:</p>
<div style="background-color:#ffffff;color:#080808">
<div style="background-color:#ffffff;color:#080808">
<pre
style="font-family:'JetBrains Mono',monospace;font-size:9,8pt;"><span
style="color:#0033b3;">use </span><span style="color:#000000;">Doctrine</span>\<span
style="color:#000000;">Persistence</span>\<span
style="color:#000000;">ManagerRegistry</span>;
<span style="color:#0033b3;">use </span><span style="color:#000000;">Mapbender</span>\<span
style="color:#000000;">CoreBundle</span>\<span
style="color:#000000;">Component</span>\<span
style="color:#000000;">ApplicationYAMLMapper</span>;
<span style="color:#0033b3;">use </span><span style="color:#000000;">Symfony</span>\<span
style="color:#000000;">Component</span>\<span
style="color:#000000;">DependencyInjection</span>\<span
style="color:#000000;">Attribute</span>\<span
style="color:#000000;">Autowire</span>;
<span style="color:#0033b3;">use </span><span style="color:#000000;">Symfony</span>\<span
style="color:#000000;">Component</span>\<span
style="color:#000000;">HttpFoundation</span>\<span
style="color:#000000;">RedirectResponse</span>;
<span style="color:#0033b3;">use </span><span style="color:#000000;">Symfony</span>\<span
style="color:#000000;">Component</span>\<span
style="color:#000000;">HttpFoundation</span>\<span
style="color:#000000;">Response</span>;
<span style="color:#0033b3;">use </span><span style="color:#000000;">Symfony</span>\<span
style="color:#000000;">Component</span>\<span
style="color:#000000;">Routing</span>\<span
style="color:#000000;">Attribute</span>\<span
style="color:#000000;">Route</span>;</pre>
</div>
<pre
style="font-family:'JetBrains Mono',monospace;font-size:9,8pt;"><span
style="color:#0033b3;">class </span><span style="color:#000000;">WelcomeController </span><span
style="color:#0033b3;">extends </span>\<span
style="color:#000000;">Mapbender</span>\<span
style="color:#000000;">CoreBundle</span>\<span
style="color:#000000;">Controller</span>\<span
style="color:#000000;">WelcomeController
</span>{
<span style="color:#0033b3;">public function </span><span
style="color:#00627a;">__construct</span>(
<span style="color:#9e880d;">#[Autowire</span>(<span
style="color:#4a86e8;">service: </span><span
style="color:#067d17;">'mapbender.application.yaml_entity_repository'</span>)<span
style="color:#9e880d;">] </span><span style="color:#000000;">ApplicationYAMLMapper </span><span
style="color:#660000;">$yamlRepository</span>,
<span style="color:#000000;">ManagerRegistry </span><span
style="color:#660000;">$doctrine</span>,
)
{
<span style="color:#0033b3;">parent</span>::<span
style="color:#00627a;font-style:italic;">__construct</span>(<span
style="color:#660000;">$yamlRepository</span>, <span
style="color:#660000;">$doctrine</span>);
}
<span style="color:#9e880d;">#[Route</span>(<span
style="color:#4a86e8;">path: </span><span style="color:#067d17;">'/'</span>, <span
style="color:#4a86e8;">name: </span><span style="color:#067d17;">'mapbender_core_welcome_list'</span>, <span
style="color:#4a86e8;">methods: </span>[<span
style="color:#067d17;">'GET'</span>])<span style="color:#9e880d;">]
</span><span style="color:#9e880d;"> </span><span
style="color:#0033b3;">public function </span><span
style="color:#00627a;">list</span>(): <span style="color:#000000;">Response
</span><span style="color:#000000;"> </span>{
<span style="color:#660000;">$user </span>= <span
style="color:#660000;">$this</span>-><span
style="color:#00627a;">getUser</span>();
<span style="color:#0033b3;">if </span>(<span
style="color:#660000;">$user </span>=== <span
style="color:#0033b3;">null</span>) {
<span style="color:#0033b3;">return new </span><span
style="color:#000000;">RedirectResponse</span>(
<span style="color:#660000;">$this</span>-><span
style="color:#00627a;">generateUrl</span>(<span
style="color:#067d17;">'mapbender_core_login_login'</span>),
<span style="color:#000000;">Response</span>::<span
style="color:#871094;font-style:italic;">HTTP_MOVED_PERMANENTLY
</span><span style="color:#871094;font-style:italic;"> </span>);
}
<span style="color:#0033b3;">return parent</span>::<span
style="color:#00627a;font-style:italic;">list</span>();
}
}</pre>
</div>
<p>Falls autowiring nicht aktiv ist (was aber empfohlen wird für
Mapbender 4.x), muss der Controller noch in einer
services.xml-Datei konfiguriert werden. Außerdem muss falls nicht
schon gesehen in config/routes/attributes.yaml aktiviert werden,
dass die Controller aus dem eigenen Bundle auch geladen werden.</p>
<p>Viele Grüße,</p>
<p>Thorsten Hack</p>
<p>--</p>
<div>
<table style="direction: ltr; color: rgb(0, 0, 0);">
<tbody>
<tr>
<td
style="padding-right: 4.5pt; vertical-align: top; width: 200px; height: 37px;">
<p
style="margin: 0; font-family: 'Ubuntu Medium', Ubuntu, sans-serif; font-size: 9pt; color: black; font-weight: 500;">
Thorsten Hack </p>
<p
style="margin: 0; font-family: 'Ubuntu Light', Ubuntu, sans-serif; font-weight: 300; font-size: 8pt; color: black;">
Software-Entwicklung </p>
<br>
</td>
</tr>
<tr>
<td
style="width:192px; height:39px; text-align:left; padding:0; margin:0; overflow:visible;">
<img alt="WhereGroup Logo"
src="cid:part1.ZuvSgFDa.QudR0Q3k@wheregroup.com"
style="max-width: 100%; height: auto; display: block;">
</td>
</tr>
<tr>
<td
style="padding: 4.5pt 4.5pt 4.5pt 0; width: 192px; height: 65px;">
<p
style="margin: 0; font-family: 'Ubuntu Light', Ubuntu, sans-serif; font-size: 8pt; color: #747577;">
<br>
WhereGroup GmbH<br>
Schwimmbadstr. 2<br>
79100 Freiburg<br>
Germany<br>
<br>
+49 761 519 102 67<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:thorsten.hack@wheregroup.com">thorsten.hack@wheregroup.com</a><br>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a><br>
<br>
Geschäftsführer:<br>
Olaf Knopp, Peter Stamm<br>
Amtsgericht Bonn, HRB 9885 </p>
</td>
</tr>
</tbody>
</table>
</div>
<p><br>
</p>
<div class="moz-cite-prefix">Am 26.11.25 um 15:15 schrieb Claßen,
Jens via Mapbender_users:<br>
</div>
<blockquote type="cite"
cite="mid:75cfcdb02d674b1687e037ec2489cf8e@erftstadt.de">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Arial",sans-serif;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Arial",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Arial",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ich möchte, wenn ich den Mapbender aufrufe
direkt zum Login geleitet werden /user/login und nicht zur
Anwendungsauswahl.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kann ich das nur in Apache selbst
definieren oder kann ich das direkt im Mapbender
konfigurieren?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Grüße<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jens<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<table
style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri; LINE-HEIGHT: 17px"
cellspacing="0" cellpadding="0" width="590" border="0">
<tbody style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri">
<tr style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri">
<td style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri">
<p style="FONT-SIZE: 11pt; FONT-FAMILY: Arial"><span
style="FONT-SIZE: 11pt; FONT-FAMILY: Arial">Mit
freundlichen Grüßen</span><br
style="FONT-SIZE: 12pt; FONT-FAMILY: Arial">
<span style="FONT-SIZE: 11pt; FONT-FAMILY: Arial">Im
Auftrag</span></p>
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri"><span
style="FONT-SIZE: 12pt; FONT-FAMILY: Arial">Jens
Claßen</span><br
style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri">
<br style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri">
<span style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri"><strong
style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri"><font
face="Arial"><img border="0"
src="cid:part2.6lksne8t.8k9jejNO@wheregroup.com"
class=""><br style="FONT-FAMILY: Arial">
<br style="FONT-FAMILY: Arial">
</font></strong></span><font
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"
color="#9a9a9a"><font style="FONT-FAMILY: Arial"
color="#000000"><u style="FONT-FAMILY: Arial">Stadt
Erftstadt</u><br style="FONT-FAMILY: Arial">
Amt für Stadtplanung und Bauordnung<br
style="FONT-FAMILY: Arial">
CAD und GIS Administration</font></font><br
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<font face="Arial">Holzdamm 10<br
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
50374 Erftstadt<br
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
E-Mail: </font><a style="FONT-FAMILY: Arial"
href="mailto:Jens.Classen@erftstadt.de"
moz-do-not-send="true" class="moz-txt-link-freetext">Jens.Classen@erftstadt.de</a><br
style="FONT-FAMILY: Arial">
<font face="Arial">Tel.: +492235409355<br
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
Internet: </font><a
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"
href="https://www.erftstadt.de" moz-do-not-send="true"
class="moz-txt-link-freetext">https://www.erftstadt.de</a></p>
</td>
<td style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri"
valign="bottom" align="right"><br>
</td>
</tr>
<tr style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri">
<td style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri"
colspan="2">
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri"><br>
<img style="HEIGHT: 120px; WIDTH: 85px" border="0"
src="cid:part3.9oRySMnZ.uJf5akp0@wheregroup.com"
width="85" height="120" class=""><br>
</p>
</td>
</tr>
</tbody>
</table>
<table
style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri; LINE-HEIGHT: 17px"
cellspacing="0" cellpadding="0" width="590" border="0">
<tbody style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri">
<tr style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri">
<td style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri"><span
style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri; COLOR: #959595; LINE-HEIGHT: 11px"><br
style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri">
<span style="FONT-SIZE: 9pt"><span
style="FONT-FAMILY: Arial">Hinweis: Diese E-Mail
und/oder die Anhänge sind vertraulich und
ausschließlich für den bezeichneten Adressaten
bestimmt. Die Weitergabe oder Kopieren dieser E-Mail
ist strengstens verboten. Wenn Sie diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte
unverzüglich den Absender und vernichten Sie die
Nachricht und alle Anhänge. Vielen Dank.</span>
<br>
</span></span></td>
</tr>
</tbody>
</table>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
Mapbender_users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mapbender_users@lists.osgeo.org">Mapbender_users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapbender_users">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a>
</pre>
</blockquote>
</body>
</html>