Index: /branches/2.0/tests/Symfony/Tests/Component/Security/Core/Authentication/Token/AbstractTokenTest.php
===================================================================
--- /branches/2.0/tests/Symfony/Tests/Component/Security/Core/Authentication/Token/AbstractTokenTest.php (revision 32220)
+++ /branches/2.0/tests/Symfony/Tests/Component/Security/Core/Authentication/Token/AbstractTokenTest.php (revision 32249)
@@ -58,6 +58,6 @@
/**
- * @covers Symfony\Component\Security\Core\Authentication\Token\Token::serialize
- * @covers Symfony\Component\Security\Core\Authentication\Token\Token::unserialize
+ * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::serialize
+ * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::unserialize
*/
public function testSerialize()
@@ -73,5 +73,5 @@
/**
- * @covers Symfony\Component\Security\Core\Authentication\Token\Token::__construct
+ * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::__construct
*/
public function testConstructor()
@@ -88,6 +88,6 @@
/**
- * @covers Symfony\Component\Security\Core\Authentication\Token\Token::isAuthenticated
- * @covers Symfony\Component\Security\Core\Authentication\Token\Token::setAuthenticated
+ * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::isAuthenticated
+ * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::setAuthenticated
*/
public function testAuthenticatedFlag()
@@ -104,9 +104,9 @@
/**
- * @covers Symfony\Component\Security\Core\Authentication\Token\Token::getAttributes
- * @covers Symfony\Component\Security\Core\Authentication\Token\Token::setAttributes
- * @covers Symfony\Component\Security\Core\Authentication\Token\Token::hasAttribute
- * @covers Symfony\Component\Security\Core\Authentication\Token\Token::getAttribute
- * @covers Symfony\Component\Security\Core\Authentication\Token\Token::setAttribute
+ * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::getAttributes
+ * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::setAttributes
+ * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::hasAttribute
+ * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::getAttribute
+ * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::setAttribute
*/
public function testAttributes()
Index: /branches/2.0/src/Symfony/Component/DomCrawler/Crawler.php
===================================================================
--- /branches/2.0/src/Symfony/Component/DomCrawler/Crawler.php (revision 32229)
+++ /branches/2.0/src/Symfony/Component/DomCrawler/Crawler.php (revision 32249)
@@ -561,41 +561,4 @@
}
- private function getNode($position)
- {
- foreach ($this as $i => $node) {
- if ($i == $position) {
- return $node;
- }
- // @codeCoverageIgnoreStart
- }
-
- return null;
- // @codeCoverageIgnoreEnd
- }
-
- private function parseUri($uri)
- {
- if ('http' !== substr($uri, 0, 4)) {
- return array(null, '/');
- }
-
- $path = parse_url($uri, PHP_URL_PATH);
-
- return array(preg_replace('#^(.*?//[^/]+)\/.*$#', '$1', $uri), $path);
- }
-
- private function sibling($node, $siblingDir = 'nextSibling')
- {
- $nodes = array();
-
- do {
- if ($node !== $this->getNode(0) && $node->nodeType === 1) {
- $nodes[] = $node;
- }
- } while ($node = $node->$siblingDir);
-
- return $nodes;
- }
-
static public function xpathLiteral($s)
{
@@ -623,3 +586,40 @@
return sprintf("concat(%s)", implode($parts, ', '));
}
+
+ private function getNode($position)
+ {
+ foreach ($this as $i => $node) {
+ if ($i == $position) {
+ return $node;
+ }
+ // @codeCoverageIgnoreStart
+ }
+
+ return null;
+ // @codeCoverageIgnoreEnd
+ }
+
+ private function parseUri($uri)
+ {
+ if ('http' !== substr($uri, 0, 4)) {
+ return array(null, '/');
+ }
+
+ $path = parse_url($uri, PHP_URL_PATH);
+
+ return array(preg_replace('#^(.*?//[^/]+)\/.*$#', '$1', $uri), $path);
+ }
+
+ private function sibling($node, $siblingDir = 'nextSibling')
+ {
+ $nodes = array();
+
+ do {
+ if ($node !== $this->getNode(0) && $node->nodeType === 1) {
+ $nodes[] = $node;
+ }
+ } while ($node = $node->$siblingDir);
+
+ return $nodes;
+ }
}
Index: /branches/2.0/src/Symfony/Bundle/DoctrineMongoDBBundle/DependencyInjection/DoctrineMongoDBExtension.php
===================================================================
--- /branches/2.0/src/Symfony/Bundle/DoctrineMongoDBBundle/DependencyInjection/DoctrineMongoDBExtension.php (revision 32221)
+++ /branches/2.0/src/Symfony/Bundle/DoctrineMongoDBBundle/DependencyInjection/DoctrineMongoDBExtension.php (revision 32249)
@@ -34,29 +34,4 @@
/**
* Responds to the doctrine_mongo_db configuration parameter.
- *
- * Available options:
- *
- * * mappings An array of bundle names (as the key)
- * and mapping configuration (as the value).
- * * default_document_manager The name of the document manager that should be
- * marked as the default. Default: default.
- * * default_connection If using a single connection, the name to give
- * to that connection. Default: default.
- * * metadata_cache_driver Options: array (default), apc, memcache, xcache
- * * server The server if only specifying one connection
- * (e.g. mongodb://localhost:27017)
- * * options The connections options if only specifying
- * one connection.
- * * connections An array of each connection and its configuration
- * * document_managers An array of document manager names and
- * configuration.
- * * default_database The database for a document manager that didn't
- * explicitly set a database. Default: default;
- * * proxy_namespace Namespace of the generated proxies. Default: Proxies
- * * auto_generate_proxy_classes Whether to always regenerate the proxt classes.
- * Default: false.
- * * hydrator_namespace Namespace of the generated proxies. Default: Hydrators
- * * auto_generate_hydrator_classes Whether to always regenerate the proxt classes.
- * Default: false.
*/
public function load(array $configs, ContainerBuilder $container)
@@ -67,5 +42,5 @@
$processor = new Processor();
- $configuration = new Configuration();
+ $configuration = new Configuration($container->getParameter('kernel.debug'));
$config = $processor->process($configuration->getConfigTree(), $configs);
@@ -178,6 +153,10 @@
'setAutoGenerateHydratorClasses' => '%doctrine.odm.mongodb.auto_generate_hydrator_classes%',
'setDefaultDB' => $defaultDatabase,
- 'setLoggerCallable' => array(new Reference('doctrine.odm.mongodb.logger'), 'logQuery'),
);
+
+ if ($documentManager['logging']) {
+ $methods['setLoggerCallable'] = array(new Reference('doctrine.odm.mongodb.logger'), 'logQuery');
+ }
+
foreach ($methods as $method => $arg) {
if ($odmConfigDef->hasMethodCall($method)) {
Index: /branches/2.0/src/Symfony/Bundle/DoctrineMongoDBBundle/DependencyInjection/Configuration.php
===================================================================
--- /branches/2.0/src/Symfony/Bundle/DoctrineMongoDBBundle/DependencyInjection/Configuration.php (revision 32221)
+++ /branches/2.0/src/Symfony/Bundle/DoctrineMongoDBBundle/DependencyInjection/Configuration.php (revision 32249)
@@ -13,8 +13,19 @@
class Configuration
{
+ private $debug;
+
+ /**
+ * Constructor.
+ *
+ * @param Boolean $debug The kernel.debug value
+ */
+ public function __construct($debug)
+ {
+ $this->debug = (Boolean) $debug;
+ }
+
/**
* Generates the configuration tree.
*
- * @param boolean $kernelDebug The kernel.debug DIC parameter
* @return \Symfony\Component\DependencyInjection\Configuration\NodeInterface
*/
@@ -55,4 +66,5 @@
->scalarNode('connection')->end()
->scalarNode('database')->end()
+ ->booleanNode('logging')->defaultValue($this->debug)->end()
->fixXmlConfig('mapping')
->builder($this->getMappingsNode())
Index: /branches/2.0/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xliff
===================================================================
--- /branches/2.0/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xliff (revision 31030)
+++ /branches/2.0/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xliff (revision 32249)
@@ -5,125 +5,125 @@
This value should be false
-
+ Cette valeur doit être fausseThis value should be true
-
+ Cette valeur doit être vraieThis value should be of type {{ type }}
-
+ Cette valeur doit être de type {{ type }}This value should be blank
-
+ Cette valeur doit être videThis value should be one of the given choices
-
+ Cette valeur doit être l'un des choix proposésYou should select at least {{ limit }} choices
-
+ Vous devez sélectionner au moins {{ limit }} choixYou should select at most {{ limit }} choices
-
+ Vous devez sélectionner au maximum {{ limit }} choixThe fields {{ fields }} were not expected
-
+ Les champs {{ fields }} n'ont pas été prévuThe fields {{ fields }} are missing
-
+ Les champs {{ fields }} sont manquantsThis value is not a valid date
-
+ Cette valeur n'est pas une date valideThis value is not a valid datetime
-
+ Cette valeur n'est pas une date valideThis value is not a valid email address
-
+ Cette valeur n'est pas une adresse email valideThe file could not be found
-
+ Le fichier n'as pas été trouvéThe file is not readable
-
+ Le fichier n'est pas lisibleThe file is too large ({{ size }}). Allowed maximum size is {{ limit }}
-
+ Le fichier est trop lourd ({{ size }}). La taille maximale autorisée est {{ limit }}The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}
-
+ Le type du fichier est invalide ({{ type }}). Les types autorisés sont {{ types }}This value should be {{ limit }} or less
-
+ Cette valeur doit être {{ limit }} ou moinsThis value is too long. It should have {{ limit }} characters or less
-
+ Cette chaine est trop longue. Elle doit avoir {{ limit }} caractères au maximumThis value should be {{ limit }} or more
-
+ Cette valeur doit être {{ limit }} ou plusThis value is too short. It should have {{ limit }} characters or more
-
+ Cette chaine est trop courte. Elle doit avoir {{ limit }} caractères au minimumThis value should not be blank
-
+ Cette valeur ne doit pas être videThis value should not be null
-
+ Cette valeur ne doit pas être nulleThis value should be null
-
+ Cette valeur doit être nulleThis value is not valid
-
+ Cette valeur n'est pas valideThis value is not a valid time
-
+ Cette valeur n'est pas une heure valideThis value is not a valid URL
-
+ Cette valeur n'est pas une URL valideThis value should be instance of class {{ class }}
-
+ Cette valeur doit être une instance de la classe {{ class }}This field group should not contain extra fields
-
+ Ce groupe de champs ne doit pas contenir des champs supplémentairesThe uploaded file was too large. Please try to upload a smaller file
-
+ Le fichier envoyé est trop gros. Merci d'essayer d'envoyer un fichier plus petitThe CSRF token is invalid
-
+ Le jeton CSRF est invalideThe two values should be equal
-
+ Les deux valeurs doivent être égales