Commit Graph

5662 Commits

Author SHA1 Message Date
Fabien Potencier
318ae129ad merged branch Seldaek/url_validator (PR #1370)
Commits
-------

159fc0e [Validator] Added symbols to IDNs validation
c827faf [Validator] Add support for IDNs and custom TLDs

Discussion
----------

[Validator] Add support for IDNs and custom TLDs

Minor changes to allow for IDNs and [custom TLDs](http://news.softpedia.com/news/ICANN-Approves-New-Custom-Generic-Top-Level-Domains-Like-google-bank-206977.shtml). This is the only sane way to support everything in a timeless manner.

---------------------------------------------------------------------------

by stealth35 at 2011/06/20 04:32:09 -0700

maybe it should be check the host with idn_to_ascii (if function exists, maybe it's should recreate un punycode en/decoder in the stub)

---------------------------------------------------------------------------

by mvrhov at 2011/06/20 04:40:10 -0700

/me :faceslap.
Haven't seen the link in PR

---------------------------------------------------------------------------

by Seldaek at 2011/06/20 04:40:40 -0700

@mvrhov: Yup, that's what pushed me to reconsider adding this.

@stealth35: I'm not sure if this is needed. I don't want this to be too strict, with another validator or with an extra option I think we can make a check that the domain actually exists, or do a GET / on it or something, but this just checks validity of the syntax.

---------------------------------------------------------------------------

by stealth35 at 2011/06/20 04:48:05 -0700

I understand :)
what about funny IDN like : [☎.com] (http://xn--y3h.com/) ?

---------------------------------------------------------------------------

by Seldaek at 2011/06/20 04:53:19 -0700

@stealth35: Fixed

---------------------------------------------------------------------------

by stealth35 at 2011/06/20 04:56:18 -0700

it's seem great,for acceptable chars [RFC] (http://www.faqs.org/rfcs/rfc3490.html) said (with UseSTD3ASCIIRules option) :

	(a) Verify the absence of non-LDH ASCII code points; that is, the
         absence of 0..2C, 2E..2F, 3A..40, 5B..60, and 7B..7F.
2011-06-21 18:10:17 +02:00
Fabien Potencier
ee95ff2fc5 merged branch Seldaek/event_listener (PR #1374)
Commits
-------

58b6403 Adjusted UPDATE
7350109 Renamed core.* events to kernel.* and CoreEvents to KernelEvents
edbdf7b Rename kernel.listener to kernel.event_listener

Discussion
----------

Rename kernel.listener to kernel.event_listener

Better consistency with doctrine.event_listener

---------------------------------------------------------------------------

by schmittjoh at 2011/06/20 07:39:18 -0700

I think "symfony.event_listener" would be even better then, or just short "event_listener".

There are some more inconsistencies:
- "core.response" -> "kernel.response" / "http_kernel.response"
- "core.request" -> "kernel.request"  / "http_kernel.request"
- "core.controller" -> "kernel.controller"  / "http_kernel.controller"
- "core.view" -> "kernel.view"  / "http_kernel.view"

---------------------------------------------------------------------------

by Seldaek at 2011/06/20 07:45:53 -0700

I proposed `event_listener` but @fabpot didn't like it, `symfony.event_listener` could do, but usual we refer to global stuff as framework more than symfony, so `framework.event_listener`?

The point is that the kernel "owns" the event dispatcher, even if anyone can dispatch his stuff through it. You still listen on the kernel dispatcher. So it's not that wrong imo.

As for the others. I agree that the "core" name is a bit strange. kernel would be more suitable imo. @fabpot?

---------------------------------------------------------------------------

by stof at 2011/06/20 07:50:35 -0700

@Seldaek the issue with having ``kernel`` in the tag name is that some user think that they need to define their own tag when they want to dispatch their own events (I faced it a few times on #symfony and it was also the case in #1298)

---------------------------------------------------------------------------

by Seldaek at 2011/06/20 07:51:55 -0700

Well yeah that's why I liked the idea of having only `event_listener`. IMO even with `framework.event_listener` the confusion can still happen.

---------------------------------------------------------------------------

by fabpot at 2011/06/20 08:00:23 -0700

Renaming `core.response` to `kernel.response` is fine with me.

---------------------------------------------------------------------------

by Seldaek at 2011/06/21 07:53:13 -0700

Ok, added another commit that does that renaming. Updated the two related PRs in -docs and -standard as well.
2011-06-21 18:03:33 +02:00
Jordi Boggiano
58b640376b Adjusted UPDATE 2011-06-21 17:18:34 +02:00
Jordi Boggiano
7350109f6e Renamed core.* events to kernel.* and CoreEvents to KernelEvents 2011-06-21 16:35:14 +02:00
Jordi Boggiano
edbdf7b154 Rename kernel.listener to kernel.event_listener
Better consistency with doctrine.event_listener
2011-06-21 16:35:12 +02:00
Fabien Potencier
73b22e5ad0 merged branch Seldaek/wdt (PR #1390)
Commits
-------

e272d56 [WebProfilerBundle] Fixes toolbar content check

Discussion
----------

[WebProfilerBundle] Fixes toolbar content check

It appears that some html optimizers trim the comments, therefore the old check was not working. This is more robust.

Fixes the issue reported in 8541a5bcbc
2011-06-21 15:06:15 +02:00
Jordi Boggiano
e272d56913 [WebProfilerBundle] Fixes toolbar content check
It appears that some html optimizers trim the comments, therefore the old check was not working. This is more robust.
2011-06-21 13:50:13 +02:00
Fabien Potencier
8541a5bcbc merged branch Seldaek/wdt (PR #1388)
Commits
-------

abd60ac [WebProfilerBundle] Do not display toolbar loading result if it's not a valid toolbar
406c8d8 [WebProfilerBundle] Make toolbar loading non-blocking

Discussion
----------

Non-blocking WDT & prevents garbage to slip in the page

I made the loading non-blocking so that it's not preventing normal operation of the page when the WDT takes a bit long to come up (happens sometimes when the machine is busy).

The second commit also checks that the response looks correct, to prevent stack traces and such to appear in the page if there was a problem. The main issue is not really stack traces though it's mostly with security and intercept_redirect enabled, if you look at a fully secured site you get twice the redirect intercept message to the login page.

Tested in IE7/9/FF4/Opera11
2011-06-21 12:46:53 +02:00
Fabien Potencier
0c5d993c9f merged branch Seldaek/wdt_close (PR #1389)
Commits
-------

f315ad9 [WebProfilerBundle] Make sure the toolbar closes properly

Discussion
----------

[WebProfilerBundle] Make sure the toolbar closes properly

Due to the whitespace element between the div which clears and the toolbar div, in some browsers it was left over after you close the toolbar, this doesn't happen anymore.

Tested in IE7/9/FF4/Opera11
2011-06-21 12:45:24 +02:00
Jordi Boggiano
f315ad950e [WebProfilerBundle] Make sure the toolbar closes properly 2011-06-21 11:58:38 +02:00
Jordi Boggiano
abd60ac345 [WebProfilerBundle] Do not display toolbar loading result if it's not a valid toolbar 2011-06-21 11:57:38 +02:00
Jordi Boggiano
406c8d81ef [WebProfilerBundle] Make toolbar loading non-blocking 2011-06-21 11:56:49 +02:00
Fabien Potencier
9ceaf6fcbe [SecurityBundle] fixed typo 2011-06-21 08:09:24 +02:00
Fabien Potencier
6ab11eb1ce [Console] decoupled Command from Application 2011-06-20 21:24:21 +02:00
Fabien Potencier
25e99e894b renamed Command to ContainerAwareCommand 2011-06-20 21:04:55 +02:00
Fabien Potencier
5744b520f7 [Console] added unit tests for DialogHelper 2011-06-20 19:05:56 +02:00
Fabien Potencier
08017fd881 merged branch Seldaek/traceable_event (PR #1372)
Commits
-------

6c46a3b [FrameworkBundle] Prevent breakage when an array callback is not callable

Discussion
----------

[FrameworkBundle] Prevent breakage when an array callback is not callable

W/o this you get warnings that objects can't be converted to strings.
2011-06-20 16:10:48 +02:00
Jordi Boggiano
6c46a3b1b2 [FrameworkBundle] Prevent breakage when an array callback is not callable 2011-06-20 16:08:12 +02:00
Fabien Potencier
aedb1dfe62 [DoctrineBundle] changed exception to use native Doctrine exception 2011-06-20 14:38:16 +02:00
Jordi Boggiano
159fc0edf0 [Validator] Added symbols to IDNs validation 2011-06-20 13:52:36 +02:00
Jordi Boggiano
c827faf694 [Validator] Add support for IDNs and custom TLDs 2011-06-20 12:57:46 +02:00
Fabien Potencier
e6a2ca6508 [DoctrineBundle] fixed doctrine:generate:entity when the bundle does not contain any Entities yet 2011-06-20 12:25:30 +02:00
Fabien Potencier
14b0807a80 merged branch Seldaek/sessionopt (PR #1368)
Commits
-------

f400124 [HttpFoundation] Small optimization of Session flash handling

Discussion
----------

[HttpFoundation] Small optimization of Session flash handling

Due to copy-on-write, this is faster and takes less memory unless the flashes are changed during the request, but that's not very likely as typically you set flashes, redirect, then show them, and at that point you do not modify them again.
2011-06-20 11:42:53 +02:00
Fabien Potencier
bb7a9d75ea [Config] fixed phpdoc 2011-06-20 11:19:55 +02:00
Jordi Boggiano
f400124037 [HttpFoundation] Small optimization of Session flash handling 2011-06-20 11:06:27 +02:00
Fabien Potencier
8b168a142b [HttpKernel] updated HttpKernel::varToString() 2011-06-20 10:27:01 +02:00
Fabien Potencier
2e1747bf76 added more information about a resource in error and debug messages 2011-06-20 10:16:09 +02:00
Fabien Potencier
01ecaa4503 [Config] renamed FileLoaderImportException to FileLoaderLoadException and replaced some \InvalidArgumentException with this new exception class 2011-06-20 10:16:05 +02:00
Fabien Potencier
38fa4e65dc fixed tests 2011-06-20 08:06:32 +02:00
Fabien Potencier
52b7dd2b7a [HttpKernel] moved back the default Kernel:init() method 2011-06-20 08:01:30 +02:00
Fabien Potencier
a1afb9961b [HttpKernel] sanitized log context in the log data collector 2011-06-19 13:20:00 +02:00
Fabien Potencier
1c14010ebf merged branch stof/loggerinterface (PR #1356)
Commits
-------

72d0ebe9 [WebProfilerBundle] Added the support of the the logging context in the template
410b3e0 [HttpKernel] Added the context in the LoggerInterface

Discussion
----------

context in the LoggerInterface

This adds the context in the LoggerInterface. The change is totally BC for people using the logger. However this affects people implementing the interface.

Note that this require Seldaek/monolog#33 for the implementation

---------------------------------------------------------------------------

by Seldaek at 2011/06/17 04:24:18 -0700

@fabpot: just ping me when you are merging this one, so I can merge in monolog and we avoid out-of-sync issues.

---------------------------------------------------------------------------

by stof at 2011/06/17 04:49:05 -0700

@Seldaek you can merge in Monolog when you want. Monolog is BC so merging it before the PR in Symfony2 does not break things.

---------------------------------------------------------------------------

by Seldaek at 2011/06/17 05:08:34 -0700

Ah right, I thought the interfaces wouldn't match, but PHP allows extra args it seems so I'll merge right now.

---------------------------------------------------------------------------

by stof at 2011/06/17 05:32:58 -0700

PHP allows extra *optionnal* args and it is the case here :)

---------------------------------------------------------------------------

by Seldaek at 2011/06/17 05:35:00 -0700

Well yes otherwise you break the interface. Anyway it's merged so @fabpot, anytime :)
2011-06-19 12:11:00 +02:00
Fabien Potencier
3f70fc1d44 merged branch 1ed/console-line-breaks (PR #1361)
Commits
-------

3cfff4b [Console] fixed output formatter if content has line breaks

Discussion
----------

[Console] fixed formatter if content has line breaks

Fixes the Symfony2 ASCII art in shell.
2011-06-19 11:36:24 +02:00
Fabien Potencier
031eb5c7e9 merged branch hidenorigoto/translate-UPDATE-beta5 (PR #1364)
Commits
-------

8ea6989 translated UPDATE file into Japanese (BETA5)

Discussion
----------

Translate UPDATE file into Japanese (beta5)
2011-06-19 08:26:51 +02:00
hidenorigoto
8ea6989e02 translated UPDATE file into Japanese (BETA5) 2011-06-18 19:48:51 +09:00
Gábor Egyed
3cfff4bfbe [Console] fixed output formatter if content has line breaks 2011-06-18 02:07:44 +02:00
Fabien Potencier
7e40b63bdc updated UPDATE file 2011-06-17 18:20:15 +02:00
Fabien Potencier
610c1cc987 [Routing] removed AnnotationGlobLoader 2011-06-17 18:18:03 +02:00
Fabien Potencier
54dd7966e6 [Console] added missing @api 2011-06-17 18:17:53 +02:00
Fabien Potencier
9483c4ffa3 [BrowserKit] convert a click to a submit when the link is actually a form 2011-06-17 15:23:12 +02:00
Fabien Potencier
8c89da0004 [TwigBundle] fixed cache warmer when there is a template with a syntax error 2011-06-17 15:03:38 +02:00
Fabien Potencier
7d16c981a2 merged branch stof/doctrine_mapping_types (PR #1355)
Commits
-------

98b6f9b Fixed tests
ad1b690 [DoctrineBundle] Updated the XSD schema
41347bc [DoctrineBundle] Added the support of custom types for the platform

Discussion
----------

Doctrine mapping types

This adds the full support of Doctrine mapping type, allowing to use them in the SchemaTool. It closes #1349

---------------------------------------------------------------------------

by stof at 2011/06/17 02:05:45 -0700

See also symfony/symfony-docs#414 for the doc

---------------------------------------------------------------------------

by fabpot at 2011/06/17 02:18:03 -0700

Tests do not pass.

---------------------------------------------------------------------------

by stof at 2011/06/17 02:25:25 -0700

Fixed

---------------------------------------------------------------------------

by beberlei at 2011/06/17 03:27:58 -0700

+1
2011-06-17 14:36:45 +02:00
Fabien Potencier
c536797cc9 [Routing] removed an optimization as it does not always work as expected 2011-06-17 14:28:23 +02:00
Fabien Potencier
968cc7532d [ClassLoader] made another performance improvement 2011-06-17 14:15:14 +02:00
Fabien Potencier
fb4f37856e [ClassLoader] made a big performance improvement 2011-06-17 14:11:55 +02:00
Christophe Coevoet
72d0ebe926 [WebProfilerBundle] Added the support of the the logging context in the template 2011-06-17 12:40:50 +02:00
Christophe Coevoet
410b3e06d6 [HttpKernel] Added the context in the LoggerInterface 2011-06-17 12:26:12 +02:00
Christophe Coevoet
98b6f9b01b Fixed tests 2011-06-17 11:24:55 +02:00
Christophe Coevoet
ad1b6901f2 [DoctrineBundle] Updated the XSD schema 2011-06-17 09:59:35 +02:00
Christophe Coevoet
41347bc3f5 [DoctrineBundle] Added the support of custom types for the platform 2011-06-17 09:59:01 +02:00