This commit is contained in:
Fabien Potencier 2012-03-23 12:47:25 +01:00
parent dd7efb7f36
commit def4323dc8
3 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ class TwigExtensionTest extends TestCase
// Yaml and Php specific configs
if (in_array($format, array('yml', 'php'))) {
$this->assertEquals('bad', $calls[2][1][0], '->load() registers variables as Twig globals');
$this->assertEquals('bad', $calls[2][1][0], '->load() registers variables as Twig globals');
$this->assertEquals(array('key' => 'foo'), $calls[2][1][1], '->load() registers variables as Twig globals');
}

View File

@ -109,7 +109,7 @@ class ValidatorTypeGuesser implements FormTypeGuesserInterface
return new TypeGuess('text', array(), Guess::LOW_CONFIDENCE);
}
break;
case 'Symfony\Component\Validator\Constraints\Country':
return new TypeGuess('country', array(), Guess::HIGH_CONFIDENCE);

View File

@ -98,7 +98,7 @@ class ExceptionListener
$token = $this->context->getToken();
if (!$this->authenticationTrustResolver->isFullFledged($token)) {
if (null !== $this->logger) {
$this->logger->debug('Access is denied (user is not fully authenticated) by '.$exception->getFile().' at line '.$exception->getLine().'; redirecting to authentication entry point');
$this->logger->debug(sprintf('Access is denied (user is not fully authenticated) by "%s" at line %s; redirecting to authentication entry point', $exception->getFile(), $exception->getLine()));
}
try {
@ -110,7 +110,7 @@ class ExceptionListener
}
} else {
if (null !== $this->logger) {
$this->logger->debug('Access is denied (and user is neither anonymous, nor remember-me) by '.$exception->getFile().' at line '.$exception->getLine());
$this->logger->debug(sprintf('Access is denied (and user is neither anonymous, nor remember-me) by "%s" at line %s', $exception->getFile(), $exception->getLine()));
}
try {