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 fausse This value should be true - + Cette valeur doit être vraie This value should be of type {{ type }} - + Cette valeur doit être de type {{ type }} This value should be blank - + Cette valeur doit être vide This value should be one of the given choices - + Cette valeur doit être l'un des choix proposés You should select at least {{ limit }} choices - + Vous devez sélectionner au moins {{ limit }} choix You should select at most {{ limit }} choices - + Vous devez sélectionner au maximum {{ limit }} choix The fields {{ fields }} were not expected - + Les champs {{ fields }} n'ont pas été prévu The fields {{ fields }} are missing - + Les champs {{ fields }} sont manquants This value is not a valid date - + Cette valeur n'est pas une date valide This value is not a valid datetime - + Cette valeur n'est pas une date valide This value is not a valid email address - + Cette valeur n'est pas une adresse email valide The file could not be found - + Le fichier n'as pas été trouvé The file is not readable - + Le fichier n'est pas lisible The 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 moins This value is too long. It should have {{ limit }} characters or less - + Cette chaine est trop longue. Elle doit avoir {{ limit }} caractères au maximum This value should be {{ limit }} or more - + Cette valeur doit être {{ limit }} ou plus This value is too short. It should have {{ limit }} characters or more - + Cette chaine est trop courte. Elle doit avoir {{ limit }} caractères au minimum This value should not be blank - + Cette valeur ne doit pas être vide This value should not be null - + Cette valeur ne doit pas être nulle This value should be null - + Cette valeur doit être nulle This value is not valid - + Cette valeur n'est pas valide This value is not a valid time - + Cette valeur n'est pas une heure valide This value is not a valid URL - + Cette valeur n'est pas une URL valide This 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émentaires The 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 petit The CSRF token is invalid - + Le jeton CSRF est invalide The two values should be equal - + Les deux valeurs doivent être égales Index: /branches/2.0/vendors.sh =================================================================== --- /branches/2.0/vendors.sh (revision 32076) +++ /branches/2.0/vendors.sh (revision 32249) @@ -36,5 +36,5 @@ # Assetic -install_git assetic git://github.com/kriswallsmith/assetic.git +install_git assetic git://github.com/kriswallsmith/assetic.git v1.0.0alpha1 # Doctrine ORM