Commit Graph

924 Commits

Author SHA1 Message Date
Jeremy Mikola
a86bac44ce [Validator] Remove leading '@' when validating email domain MX record 2010-09-10 20:42:22 +02:00
Fabien Potencier
74bc9d461b [FrameworkBundle] made csrf_secret parameter optional 2010-09-10 19:32:17 +02:00
Jeremy Mikola
77602239a4 [Form] Add new fields in CollectionField::setData() 2010-09-10 19:31:02 +02:00
Jeremy Mikola
57c0ce0ec1 [Form] Remove support for ArrayObject as ChoiceField's choices option
Internally, ChoiceField expects both choices and preferred_choices to be a simple array, so I replaced incomplete bits of code that attempted to not modify a possible ArrayObject and instead added type checks in the configure() method (with unit tests for expected exceptions).
2010-09-10 19:30:59 +02:00
Fabien Potencier
226277fd0e added a way to activate CSRF protection from the configuration 2010-09-10 14:32:33 +02:00
Fabien Potencier
0de1c08d8d reverted "[Form] fixed default CSRF token generation as a token must be tied to the user somewhat"
This reverts commit d326c398e2.
2010-09-10 14:16:59 +02:00
Fabien Potencier
d326c398e2 [Form] fixed default CSRF token generation as a token must be tied to the user somewhat 2010-09-10 14:13:56 +02:00
Antoine Hérault
4237fdd918 [Form] set file field as multipart 2010-09-10 12:34:32 +02:00
Antoine Hérault
7bd76610ca [HttpFoundation] fixed request files handling 2010-09-10 12:34:28 +02:00
Fabien Potencier
63793dd62e [Form] added missing use statement 2010-09-10 09:21:29 +02:00
ornicar
90da4d0c3c [DoctrineMongoDBBundle] Move test configuration fixtures to Resource/config/doctrine/metadata/orm/ 2010-09-10 07:49:18 +02:00
ornicar
aa4c196356 [DoctrineBundle] Move test configuration fixtures to Resource/config/doctrine/metadata/orm/ 2010-09-10 07:49:13 +02:00
ornicar
c537fb9eb2 [DoctrineMongoDBBundle] fix mapping dirs 2010-09-10 07:49:08 +02:00
ornicar
b9a7b7e51a [DoctrineBundle] fix mapping dirs 2010-09-10 07:49:04 +02:00
ornicar
eaaf447374 [DoctrineBundle] BC break - Load metadata files in Resources/config/doctrine/metadata/orm/ 2010-09-10 07:48:55 +02:00
Jeremy Mikola
fb24b291c8 [Form] FieldGroup::addError() can now map errors to fields within nested FieldGroups
Property paths such as fields[group].fields[innerGroup].data were not being resolved correctly, since the second iteration of addError() (based on "group") would attempt to call get('fields') instead of get('innerGroup').  Solution is to remember to bump the propertyPath forward if we're at the fields property
2010-09-09 16:29:38 -04:00
Jeremy Mikola
9be7cbb115 [Form] CollectionField::setData() should remove old fields missing from new data 2010-09-09 16:27:18 -04:00
Jeremy Mikola
9f5469f62d [Form] Test case for binding a collection of field groups with an ArrayObject of objects. 2010-09-09 16:11:31 -04:00
Jeremy Mikola
b3648b219b [Form] Fixed testBindSingleExpanded (was testing multiple, non-expanded) 2010-09-09 16:08:45 -04:00
Jeremy Mikola
e52cf7afe0 [Form] ChoiceField tests for numeric choices 2010-09-09 16:06:55 -04:00
Jeremy Mikola
2b776bf2e8 [Form] ChoiceField test for using ArrayObject as choices option 2010-09-09 16:03:44 -04:00
Jeremy Mikola
6fc9b68fa7 [Form] Replace unset() with non-destructive logic in case the "choices" option is an object. 2010-09-09 16:01:34 -04:00
Fabien Potencier
50f039844b [Form] removed obsolete use statements 2010-09-09 18:29:50 +02:00
Fabien Potencier
a141c98917 [HttpFoundation] moved File Component into the HttpFoundation one 2010-09-09 17:01:48 +02:00
Fabien Potencier
fc9325a737 fixed file upload 2010-09-09 16:07:12 +02:00
Fabien Potencier
40c0fe854f [Form] added a FileField 2010-09-09 15:47:44 +02:00
Fabien Potencier
c53ebe7a8e [Form] fixed Form::bind() when no values are submitted 2010-09-09 15:23:28 +02:00
Bulat Shakirzyanov
bb51e7cb26 [Validator] fixed Xliff loader to use forward slashes in file path 2010-09-09 08:01:46 +02:00
Kris Wallsmith
1aefe7a762 [Process] made cwd argument optional 2010-09-09 06:58:28 +02:00
Justin Hileman
e6b0d54531 Set parameter required for --dm option on ODM console commands. 2010-09-08 20:33:52 +02:00
Justin Hileman
51553211f3 Add Symfony proxies for Doctrine ODM schema:create and schema:drop console commands. 2010-09-08 20:33:43 +02:00
Fabien Potencier
15fa905bd4 [FrameworkBundle] fixed exception styles 2010-09-08 13:54:02 +02:00
Marc Weistroff
15d840060b Fixed wrong variable name in Esi. 2010-09-07 18:42:54 +02:00
Fabien Potencier
c39534e258 [Routing] removed the autoloading trick, which is not needed anymore 2010-09-07 16:15:13 +02:00
Fabien Potencier
4d669d106e [Validator] changed Xliff loader to get XSD locally 2010-09-07 14:30:50 +02:00
Fabien Potencier
dadfaa271f [Validator] fixed indentation 2010-09-07 14:18:00 +02:00
Fabien Potencier
b753ea45b2 [Routing] added 'defaults' support in Annotation class loader 2010-09-07 13:55:45 +02:00
Fabien Potencier
130494066d [Routing] added an annotation loader 2010-09-07 09:44:08 +02:00
Bulat Shakirzyanov
df98a229f3 [DoctrineMongoDBBundle] added support for more Mongo and ODM types 2010-09-06 18:26:24 +02:00
Fabien Potencier
2f8db9135a fixed webprofiler on Windows (closes #9045) 2010-09-06 15:25:33 +02:00
Fabien Potencier
eb7cbb77ec fixed exception HTML markup (closes #9044, partially based on a patch from wrzasq) 2010-09-06 15:08:08 +02:00
ornicar
f398755fcd [DoctrineMongoDBBundle] BC break - Load metadata files in Resources/config/doctrine/metadata/mongodb/ 2010-09-06 08:49:34 +02:00
Kris Wallsmith
1443d4a0ba [HttpFoundation] updated getQueryString() to work in more scenarios 2010-09-06 08:48:11 +02:00
ornicar
b16303e8b2 [DoctrineBundle] BC break - Load fixtures in Resources/data/fixtures/doctrine/orm/ 2010-09-03 18:03:45 +02:00
Fabien Potencier
7be00aa34e fixed previous commit 2010-09-03 16:18:04 +02:00
Sébastien HOUZE
179fe8e623 Symfony\Component\Routing\Route::setRequirements() _method requirement can be an array, no substr on it 2010-09-03 12:01:57 +02:00
Fabien Potencier
4c17ce8e5e changed calls to has() to use the new proxy method 2010-09-03 11:38:21 +02:00
Bulat Shakirzyanov
2ccaafa561 [DpependencyInjection] added hasParameter() 2010-09-03 11:37:03 +02:00
Fabien Potencier
81b73dc9e6 [Form] fixed problem with PHPUnit mocks (ugly hack but it works for now) 2010-09-03 09:56:52 +02:00
Brandon Turner
26e4b2e2ef [Finder] Fixed randomly failing tests due to the order files are read from the filesystem 2010-09-03 09:29:11 +02:00