Re: [symfony-devs] Re: [Symfony2] making _format magic more useful

2010-10-30 Thread Lukas Kahwe Smith
On 30.10.2010, at 19:26, "Leo \"Ekinox\" Gaspard" wrote: > > > Le 30/10/2010 14:54, Lukas Kahwe Smith a écrit : >> >> On 30.10.2010, at 14:52, Miha Vrhovnik wrote: >> >>> Why redirect with html meta tag and not 302 HTTP code, which is the >>> right choice? >> >> >> it also does that. plus t

Re: [symfony-devs] Re: [Symfony2] making _format magic more useful

2010-10-30 Thread Leo "Ekinox" Gaspard
Le 30/10/2010 14:54, Lukas Kahwe Smith a écrit : On 30.10.2010, at 14:52, Miha Vrhovnik wrote: Why redirect with html meta tag and not 302 HTTP code, which is the right choice? it also does that. plus the html code is changed in dev mode too. And why doesn't it just uses php's header('L

Re: [symfony-devs] Re: [Symfony2] making _format magic more useful

2010-10-30 Thread Lukas Kahwe Smith
On 30.10.2010, at 14:52, Miha Vrhovnik wrote: > Why redirect with html meta tag and not 302 HTTP code, which is the > right choice? it also does that. plus the html code is changed in dev mode too. regards, Lukas Kahwe Smith m...@pooteeweet.org -- If you want to report a vulnerability issu

[symfony-devs] Re: [Symfony2] making _format magic more useful

2010-10-30 Thread Miha Vrhovnik
Why redirect with html meta tag and not 302 HTTP code, which is the right choice? Regards, M On Oct 29, 7:21 pm, Lukas Kahwe Smith wrote: > On 28.10.2010, at 15:56, Jacob Mather wrote: > > > > > > > On Thu, Oct 28, 2010 at 3:51 AM, Jordi Boggiano wrote: > > On 27.10.2010 22:48, JMather wrote: >

Re: [symfony-devs] [Symfony2] DI Extension best practices

2010-10-30 Thread Jordi Boggiano
On 30.10.2010 12:47, Lukas Kahwe Smith wrote: > There is still one open question. > Should null values override the parameter defaults or be ignored (aka leaving > the default unchanged)? > http://github.com/knplabs/DoctrineUserBundle/commit/6e17ad246e319e8233f36c039b86aeec6deb80cc > > Right now

Re: [symfony-devs] [Symfony2] DI Extension best practices

2010-10-30 Thread Lukas Kahwe Smith
On 30.10.2010, at 08:29, Richard D Shank wrote: > On 10/28/2010 07:14 AM, Lukas Kahwe Smith wrote: >> On 22.10.2010, at 11:23, Jordi Boggiano wrote: >> >> >>> Heya, >>> >>> Following the discussion on a DoctrineUserBundle commit [1] I'd like to >>> propose some sort of best practice. >>> >>

Re: [symfony-devs] Contexts for the Symfony DIC

2010-10-30 Thread Lukas Kahwe Smith
On 29.10.2010, at 22:54, Lukas Kahwe Smith wrote: > > Now a big problem I see is that I guess there needs to be a way to define the > request to have multiple contexts at the same time, just like Benjamin showed > in his example: > >> foo: >> pattern: /foo.:_format >> defaults: { _controlle

Re: [symfony-devs] Contexts for the Symfony DIC

2010-10-30 Thread Lukas Kahwe Smith
On 30.10.2010, at 10:40, Jordi Boggiano wrote: > On 29.10.2010 22:54, Lukas Kahwe Smith wrote: >>> foo: >>> pattern: /foo.:_format >>> defaults: { _controller: FooController:indexAction, contexts: ["mybundle", >>> ":_format"] } > > I think contexts are a great idea for advanced use cases and

Re: [symfony-devs] Contexts for the Symfony DIC

2010-10-30 Thread Jordi Boggiano
On 29.10.2010 22:54, Lukas Kahwe Smith wrote: >> foo: >> pattern: /foo.:_format >> defaults: { _controller: FooController:indexAction, contexts: ["mybundle", >> ":_format"] } I think contexts are a great idea for advanced use cases and even more flexibility, but even assuming we fix the overla