🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #232359

Re: Symfony 4 - jaki model routingu wybrać?

#232359
From: Borys Pogoreło
Date: Sun, 14 Apr 2019 11:57
17 lines
1871 bytes
Dnia Sun, 14 Apr 2019 11:03:36 +0200, Wojciech Bancer napisał(a):

>> Jak wygląda kwestia zmian w routingu dla dev'a? Np. chciałbym aby jakieś 
>> sekcje uwidoczniły się lub (być może) ukryły tylko dla dev'a.
> 
> https://stackoverflow.com/questions/51882132/restrict-symfony-4-route-to-the-dev-environment
> Z tego co wyczytałem, to trzeba dodać import tych routingów do config/routes/dev

I w ten sposób już tracisz jedyną (i wątpliwą) zaletę annotations, czyli
powiązania ich jednoznacznie z miejscem definicji. Wystarczy, że potrzebny
jest warunek logiczny wykraczający poza te dostarczane przez framework. Ja
ich osobiście nie lubię z tego właśnie powodu, podobnie jak plików YAML
(które do tego dodają kupę problemów z tym formatem jako takim).

-- 
Borys Pogoreło
borys(#)leszno,edu,pl
Technical Details
Message-ID: <13kimk8ee6jby.15f4bvmkcc3de$.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.promontel.net.pl!not-for-mail
References: <q8o7jr$for$1@node2.news.atman.pl> <a4b445bb-a1c1-4ea1-afd0-890ea0b76c74@googlegroups.com> <q8sbno$ngk$1@node1.news.atman.pl> <slrnqb3pma.1o88.wojciech.bancer@pl-test.org> <q8tl7m$18s$1@node1.news.atman.pl> <slrnqb5tr8.1aff.wojciech.bancer@pl-test.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.promontel.net.pl!not-for-mail
From: Borys Pogoreło <borys@pl.edu.leszno>
Newsgroups: pl.comp.lang.php
Subject: Re: Symfony 4 - jaki model routingu wybrać?
Date: Sun, 14 Apr 2019 13:57:39 +0200
Organization: snafu
Lines: 17
Message-ID: <13kimk8ee6jby.15f4bvmkcc3de$.dlg@40tude.net>
References: <q8o7jr$for$1@node2.news.atman.pl> <a4b445bb-a1c1-4ea1-afd0-890ea0b76c74@googlegroups.com> <q8sbno$ngk$1@node1.news.atman.pl> <slrnqb3pma.1o88.wojciech.bancer@pl-test.org> <q8tl7m$18s$1@node1.news.atman.pl> <slrnqb5tr8.1aff.wojciech.bancer@pl-test.org>
NNTP-Posting-Host: public-gprs177350.centertel.pl
Mime-Version: 1.0
X-Trace: thunar.promontel.net.pl 1555243059 8964 46.134.32.7 (14 Apr 2019 11:57:39 GMT)
X-Complaints-To: abuse@promontel.net.pl
NNTP-Posting-Date: Sun, 14 Apr 2019 11:57:39 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.14.1pl
X-fnord: obey.
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit