Commit Graph

5458 Commits

Author SHA1 Message Date
Fabien Potencier
2ba7e4207c Merge remote branch 'craue/patch-4'
* craue/patch-4:
  typo
2011-06-13 11:09:38 +02:00
Kris Wallsmith
a3ed5e3f84 [AsseticBundle] changed file resource string value to logical template name 2011-06-12 19:12:22 -07:00
Christian Raue
99eb3a120d typo 2011-06-12 11:59:47 -07:00
Fabien Potencier
f1e8c1bce5 fixed autoloader 2011-06-11 13:58:27 +02:00
Joseph Bielawski
6bb9075b35 Remove unused code from DateTime constraint 2011-06-11 01:18:16 -07:00
Fabien Potencier
f5de854d69 fixed autoloading for tests 2011-06-11 09:20:01 +02:00
Fabien Potencier
ca013311bd [TwigBundle] fixed XSD 2011-06-11 08:00:55 +02:00
Fabien Potencier
355f802546 [TwigBundle] fixed tests 2011-06-11 07:54:10 +02:00
Fabien Potencier
96045739b1 [TwigBundle] removed the extensions setting 2011-06-11 07:50:14 +02:00
Fabien Potencier
afa30d9864 Merge remote branch 'theinterned/patch-1'
* theinterned/patch-1:
  made logoutPath localizable as well
  storing localized targetPath in a string as opposed to updating the attribute
  In the spirit of 882a8e3f09 allow for localized logout target url
2011-06-11 07:39:04 +02:00
Fabien Potencier
c79e51c9aa Merge remote branch 'kriswallsmith/form/lazier-csrf-token'
* kriswallsmith/form/lazier-csrf-token:
  [Form] fixed xpath
  [Form] moved csrf listener to its own class
  fix issue with csrf token not present on collection fields because of resize listener
2011-06-11 07:36:51 +02:00
Fabien Potencier
8d58826085 [Routing] fixed unit tests for previous commit 2011-06-11 07:33:55 +02:00
Fabien Potencier
96554e645a Merge remote branch 'lmcd/master'
* lmcd/master:
  $code referenced but not defined in compileRoute()
  [Routing] Optimised the PHP URL matcher dumper The cached URL matcher classes contain some unneeded logic. Consider the following example:
2011-06-11 07:32:22 +02:00
Lee McDermott
2c0efa7488 $code referenced but not defined in compileRoute() 2011-06-11 04:38:11 +01:00
Lee McDermott
10bb4ff25e [Routing] Optimised the PHP URL matcher dumper
The cached URL matcher classes contain some unneeded logic. Consider the following example:

if (0 === strpos($pathinfo, '/Blog')) {
    // blog_index
    if (0 === strpos($pathinfo, '/Blog') && preg_match('#^/Blog/(?P<slug>[^/]+?)$#x', $pathinfo, $matches)) {
        return array_merge($this->mergeDefaults($matches, array (  '_action' => 'index',)), array('_route' => 'blog_index'));
    }
}

The 2nd strpos is not required, as we have already satisfied this condition in the parent if statement.
My change will produce the following code for the same routing setup::

if (0 === strpos($pathinfo, '/Blog')) {
    // blog_index
    if (preg_match('#^/Blog/(?P<slug>[^/]+?)$#x', $pathinfo, $matches)) {
        return array_merge($this->mergeDefaults($matches, array (  '_action' => 'index',)), array('_route' => 'blog_index'));
    }
}
2011-06-11 01:20:22 +01:00
Ned Schwartz
47df88bfc9 made logoutPath localizable as well 2011-06-10 15:04:50 -07:00
Ned Schwartz
8fd4158468 storing localized targetPath in a string as opposed to updating the attribute 2011-06-10 14:32:10 -07:00
Kris Wallsmith
d26c590021 [Form] fixed xpath 2011-06-10 13:18:09 -07:00
Kris Wallsmith
fe4382eb73 [Form] moved csrf listener to its own class 2011-06-10 13:00:44 -07:00
Ned Schwartz
17b7b558ce In the spirit of 882a8e3f09 allow for localized logout target url 2011-06-10 12:24:27 -07:00
Bulat Shakirzyanov
cb53414e91 fix issue with csrf token not present on collection fields because of resize listener 2011-06-10 11:12:35 -07:00
Fabien Potencier
2e5ed78095 Merge remote branch 'mridgway/vendorScriptSpaces'
* mridgway/vendorScriptSpaces:
  Adding more escapes to shell params
  Using escapeshellarg() instead of quotes
2011-06-10 19:52:18 +02:00
Fabien Potencier
d67e25c003 Merge remote branch 'richardmiller/fixed_container_debug_command_help'
* richardmiller/fixed_container_debug_command_help:
  [FrameworkBundle] Added missing word to ContainerDebugCommand help message.
2011-06-10 19:50:58 +02:00
Fabien Potencier
f857ad2a31 Merge remote branch 'stof/monolog_bubbling'
* stof/monolog_bubbling:
  [MonologBundle] Changed the default bubbling behavior. Fixes #1268
2011-06-10 19:49:41 +02:00
Christophe Coevoet
5458baf465 [MonologBundle] Changed the default bubbling behavior. Fixes #1268 2011-06-10 19:44:10 +02:00
Fabien Potencier
293ba3426a [DoctrineBridge] fixed guesser 2011-06-10 19:41:49 +02:00
Richard Miller
346cbf352a [FrameworkBundle] Added missing word to ContainerDebugCommand help message. 2011-06-10 17:56:06 +01:00
Michael Ridgway
9fb8b20739 Adding more escapes to shell params 2011-06-10 11:57:54 -04:00
Michael Ridgway
7b02384fb2 Using escapeshellarg() instead of quotes 2011-06-10 10:56:22 -04:00
Fabien Potencier
ce8d6d06e2 Merge remote branch 'mridgway/vendorScriptSpaces'
* mridgway/vendorScriptSpaces:
  Added quotes around a directory path that was missed in previous commit
2011-06-10 16:33:11 +02:00
Fabien Potencier
4da7909f9a Merge remote branch 'kriswallsmith/form/is-valid-read-only'
* kriswallsmith/form/is-valid-read-only:
  [Form] fixed isValid() on readOnly forms that have children
2011-06-10 16:32:50 +02:00
Michael Ridgway
0b7321af78 Added quotes around a directory path that was missed in previous commit 2011-06-10 10:28:36 -04:00
Kris Wallsmith
8d55df42de [Form] fixed isValid() on readOnly forms that have children 2011-06-10 07:11:50 -07:00
Fabien Potencier
37cd020040 Merge remote branch 'lsmith77/serializer_tweaks'
* lsmith77/serializer_tweaks: (22 commits)
  clarified that BC is broken in the Serializer component
  added UPDATE notes for Serializer component changes
  fix tests
  marked public api
  more encoder lazy loading tweaks
  always use getEncoder() to enable lazy loading
  cosmetic tweak
  removed setEncoder/removeEncoder/addNormalizer/removeNormalizer
  SerializerAwareInterface and DecoderInterface do not implement EncoderInterface anymore
  handle non objects
  moved the methods that can later be moved to a Builder to the bottom
  use getEncoder inside encode/decode
  made serialize/deserialize/encode/decode final
  added Constructor
  added Exception's from SerializerBundle
  made (de)normalizeObject() private
  renamed hasEncoder/hasDecoder to supportsSerialization/supportsDeserialization
  notice fixes
  typo fixes
  all encoders implement EncoderInterface
  ...
2011-06-10 15:56:35 +02:00
Fabien Potencier
44816ebca0 Merge remote branch 'Infranology/minor-code-simplification'
* Infranology/minor-code-simplification:
  [Form] minor code simplification
2011-06-10 15:55:26 +02:00
Fabien Potencier
09ee01501d Merge remote branch 'lmcd/master'
* lmcd/master:
  Added an optimisation for PHP-FPM (FastCGI Process Manager). As soon as a full Response is dispatched to the browser, the HTTP connection is closed, but the script stays alive on FPM servers.
2011-06-10 15:52:35 +02:00
Fabien Potencier
e92669eb47 Merge remote branch 'brikou/phpdoc_cookie'
* brikou/phpdoc_cookie:
  [HttpFoundation] added phpdoc + exception fix
2011-06-10 15:51:46 +02:00
Fabien Potencier
8e6d287614 Merge remote branch 'hhamon/doctrine_metadatafactory_fix'
* hhamon/doctrine_metadatafactory_fix:
  [DoctrineBundle] fixed missing backslashe.
  [DoctrineBundle] simplified getClassMetadataFactoryClass() method in both DisconnectedMetadataFactory and MetadataFactory classes.
  [DoctrineBundle] added new DisconnectedMetadataFactory class that is now used in the doctrine:generate:entities command instead of the MetadataFactory class.
2011-06-10 15:51:27 +02:00
Fabien Potencier
03a05661f9 [Form] fixed more cases where the delegating validator did not match the validator paths 2011-06-10 15:35:49 +02:00
Fabien Potencier
1daca76197 [Form] unified the way form and data path are created 2011-06-10 15:35:35 +02:00
Lukas Kahwe Smith
b7c615d869 clarified that BC is broken in the Serializer component 2011-06-10 15:04:57 +02:00
Hugo Hamon
aa6645d955 [DoctrineBundle] fixed missing backslashe. 2011-06-10 14:55:47 +02:00
Hugo Hamon
1da8922eab [DoctrineBundle] simplified getClassMetadataFactoryClass() method in both DisconnectedMetadataFactory and MetadataFactory classes. 2011-06-10 14:27:55 +02:00
Hugo Hamon
ce3839a3ea [DoctrineBundle] added new DisconnectedMetadataFactory class that is now used in the doctrine:generate:entities command instead of the MetadataFactory class. 2011-06-10 14:24:31 +02:00
Fabien Potencier
7de4d28a05 Merge remote branch 'yethee/delegating_validator'
* yethee/delegating_validator:
  [Form] Fixed path mapping for DelegatingValidator
2011-06-10 13:54:44 +02:00
Brikou CARRE
896c294b58 [HttpFoundation] added phpdoc + exception fix 2011-06-10 08:59:49 +02:00
Lukas Kahwe Smith
77fd5805e1 added UPDATE notes for Serializer component changes 2011-06-10 01:13:38 +02:00
Lukas Kahwe Smith
2b4a25a0a7 fix tests 2011-06-10 01:11:51 +02:00
Fabien Potencier
25c3fee1f2 [FrameworkBundle] removed obsolete code 2011-06-09 22:15:58 +02:00
Fabien Potencier
8cd29cabd5 Merge remote branch 'shishi/update_update.ja.md'
* shishi/update_update.ja.md:
  update UPDATE.ja.md
2011-06-09 21:25:01 +02:00