Fabien Potencier
7a509cd199
Merge remote branch 'pborreli/toString-fix'
...
* pborreli/toString-fix:
[Validator] Fixing method_exists
2011-05-09 08:57:41 +02:00
Jordi Boggiano
3b88608d85
[Serializer] Fixed typo
2011-05-08 18:34:06 +02:00
Jordi Boggiano
9311b0a7e5
[Serializer] Removed properties argument
2011-05-08 18:32:22 +02:00
Jordi Boggiano
89e056bb8b
[Serializer] Renamed AbstractEncoder/Normalizer to SerializerAwareEncoder/Normalizer
2011-05-08 18:20:53 +02:00
Jordi Boggiano
1f8defaeeb
[Serializer] JsonEncoder doesn't need SerializerAware anymore
2011-05-08 18:17:42 +02:00
Jordi Boggiano
24dcfef33f
[Serializer] Added NormalizationAwareInterface
2011-05-08 18:16:53 +02:00
Jordi Boggiano
c20b4a3950
[Serializer] Cleaned up NormalizerInterface
2011-05-08 18:15:00 +02:00
Jordi Boggiano
4104c7b073
[Serializer] Inlined back the logic from isStructuredType and removed the method
2011-05-08 18:14:44 +02:00
Jordi Boggiano
3ecc9602e4
[Serializer] Add checks for SerializerAwareInterface
2011-05-08 17:54:55 +02:00
Jordi Boggiano
01a104916b
[Serializer] Implement SerializerAwareInterface
2011-05-08 17:53:37 +02:00
Jordi Boggiano
8263b09b5c
[Serializer] Properly check for the DecoderInterface
2011-05-08 17:52:25 +02:00
Jordi Boggiano
fe7119da8a
[Serializer] serialize shouldn't normalize since it's the encoder's job to do that when they require it
2011-05-08 15:17:42 +02:00
Johannes Schmitt
f7e03f2d87
Merge remote branch 'origin/master' into annotations
...
Conflicts:
UPDATE.md
src/Symfony/Bundle/DoctrineBundle/Resources/config/orm.xml
src/Symfony/Bundle/DoctrineBundle/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php
2011-05-08 07:28:23 +02:00
Matthieu Vachon
0da289cfbc
[Security\Acl] Fixed hardcoded table names
...
* Replaced hardcoded table names by acl configuration options
2011-05-07 20:56:22 -04:00
Pascal Borreli
e60a68f2c6
[Validator] Fixing method_exists
...
see dea5b26c3f
2011-05-07 19:08:30 +00:00
Lukas Kahwe Smith
9f32345887
typo fix
2011-05-07 17:02:06 +02:00
Kris Wallsmith
f3b077a0dd
[Form] removed a bunch of unused use statements
2011-05-06 14:07:16 -07:00
Drew Butler
dea5b26c3f
Method exists does not work if you append the () to the method name, thus this never words for objects that actually have the __toString method. Removed the erroneous () so that this works as it appears to have been intended.
2011-05-06 13:20:29 -07:00
Fabien Potencier
c98bf4ff94
Merge remote branch 'Seldaek/serializer'
...
* Seldaek/serializer:
[Serializer] CS fixes
[Serializer] Split supports in supportsNormalization and supportsDenormalization
[Serializer] Add support for Traversable objects
Fixed docs typo
[Serializer] updated SerializerInterface
2011-05-06 22:13:18 +02:00
Jordi Boggiano
b9a2eb66e9
[Serializer] CS fixes
2011-05-06 19:37:13 +02:00
Jordi Boggiano
ded30a2937
[Serializer] Split supports in supportsNormalization and supportsDenormalization
2011-05-06 19:36:56 +02:00
Jordi Boggiano
919f16a7d6
[Serializer] Add support for Traversable objects
2011-05-06 19:04:39 +02:00
Jordi Boggiano
7a06421cb1
Fixed docs typo
2011-05-06 19:04:22 +02:00
Jordi Boggiano
d6afe63d2a
Merge branch 'serializerLight' of http://github.com/schmittjoh/symfony into serializer
2011-05-06 18:39:02 +02:00
Jordi Boggiano
36aa7b0d70
[HttpFoundation] Remove warnings when session id isn't given
2011-05-06 16:25:44 +02:00
Fabien Potencier
f1f379b031
[Finder] simplified code
2011-05-06 14:16:23 +02:00
Johannes Schmitt
ec1199eda7
[Serializer] updated SerializerInterface
2011-05-06 13:01:19 +02:00
Victor Berchet
68b3d0d5ac
[Form] Allow for arbitrary keys in PaddedChoiceList
2011-05-06 10:31:51 +02:00
Johannes Schmitt
486ecdc6a6
[Config] some exception improvements
2011-05-05 19:43:08 +02:00
Fabien Potencier
3f69333acb
[HttpKernel] refactored the ErrorHandler class
2011-05-05 08:53:16 +02:00
Fabien Potencier
0f0e5817b1
[HttpKernel] added a Kernel::init() method
2011-05-05 08:44:36 +02:00
Johannes Schmitt
362b7264d1
[Security][HttpFoundation] splits Request::hasSession() into hasSession(), and hasPreviousSession()
...
This closes #774 , and fixes #772 .
2011-05-05 08:38:07 +02:00
Fabien Potencier
aba8f1e180
[ClassLoader] added a debug class loader
2011-05-05 08:28:12 +02:00
Fabien Potencier
fe9ef5c68b
[Routing] fixed deep nested route collections ( closes #770 )
2011-05-04 23:29:47 +02:00
Michel Weimerskirch
476644a92c
[Form] Support for the HTML5 "pattern" attribute, see http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#the-pattern-attribute
...
If you use the MinLength validator with your entities, the ValidatorTypeGuesser gets the value, stored as "minlength". Then, the FormFactory generates a "pattern" attribute out of minlength and maxlength.
Modern browsers such as Chrome use this attribute to validate the form before submitting.
a "pattern" attribute is generated that validates the
2011-05-04 23:16:41 +02:00
Fabien Potencier
36bcfcc5ee
Merge remote branch 'bschussek/form'
...
* bschussek/form:
[Form] CSRF fields are not included in the children of a FormView anymore if the view is not the root
[Form] FormView::offsetUnset() is now supported. It was possible anyway using getChildren() and setChildren().
[Form] Split the option "modifiable" of the "collection" type into "allow_add" and "allow_delete"
[Form] Added test for last commit by kriswallsmith and improved dealing with original names
[Form] Fixed variable scope when entering nested form helpers
[Form] Added tests for blocks/templates in the format _<ID>_(widget|row|label|...)
[Form] updated listener to check that data is an array
2011-05-04 22:13:33 +02:00
Kris Wallsmith
ae46150bc8
[HttpFoundation] added support for X-Forwarded-Port request header
2011-05-04 09:56:34 -07:00
Bernhard Schussek
74cca63938
[Form] CSRF fields are not included in the children of a FormView anymore if the view is not the root
2011-05-04 18:27:20 +02:00
Bernhard Schussek
173beeba74
[Form] FormView::offsetUnset() is now supported. It was possible anyway using getChildren() and setChildren().
2011-05-04 18:21:49 +02:00
Bernhard Schussek
3cc5d9f4cd
[Form] Split the option "modifiable" of the "collection" type into "allow_add" and "allow_delete"
2011-05-04 17:29:59 +02:00
Bernhard Schussek
bf1dfbbe99
[Form] Added test for last commit by kriswallsmith and improved dealing with original names
...
The form component should now guarantee to always pass an UploadedFile object to your model. There you can call getOriginalName() to retrieve the original name of the uploaded file. For security reasons, the real file name is a generated hash value.
2011-05-04 17:04:44 +02:00
Bernhard Schussek
4c6f26f008
Merge remote branch 'kriswallsmith/form/fix-upload-fix' into kris_merge
2011-05-04 15:51:20 +02:00
Fabien Potencier
ba3785896f
Merge remote branch 'schmittjoh/di'
...
* schmittjoh/di:
[DependencyInjection] fixes a bug when requesting a definition that uses property injection
2011-05-04 12:05:06 +02:00
Fabien Potencier
6d334289ee
[BrowserKit] fixed a weird behavior where a PHP process returns a successful exit code, but the PHP scripts actually died
2011-05-04 09:08:05 +02:00
Fabien Potencier
17aa0ed0ed
changed the default httpOnly value for cookie for better security out of the box
2011-05-04 08:44:59 +02:00
Johannes Schmitt
2c287676fb
[DependencyInjection] fixes a bug when requesting a definition that uses property injection
2011-05-03 23:46:02 +02:00
Fabien Potencier
c7fddca891
replaced some url..code by rawurl..code
2011-05-03 23:06:55 +02:00
Fabien Potencier
731993869c
Merge remote branch 'Seldaek/exception_handling'
...
* Seldaek/exception_handling:
[HttpKernel] Log non-http exceptions as critical as well
2011-05-03 14:53:38 +02:00
Fabien Potencier
27d02a7d4a
[Routing] fixed regression (/ should not be matched by /{foo} when foo has no default value)
2011-05-03 14:48:08 +02:00
Jordi Boggiano
0ca4ed33fe
[HttpKernel] Log non-http exceptions as critical as well
2011-05-03 14:43:22 +02:00
Johannes Schmitt
672c4ef122
Merge remote branch 'origin/master' into annotations
...
Conflicts:
UPDATE.md
2011-05-03 14:38:51 +02:00
Fabien Potencier
036be03dff
[HttpKernel] fixed a PHP notice
2011-05-03 13:55:00 +02:00
Fabien Potencier
d2a9b23c28
[Routing] fixed routing when a pattern has only one segment which is an optional variable
2011-05-03 08:54:33 +02:00
Daniel Holmes
9107ede18c
[FrameworkBundle][HttpKernel] added a default tearDown on the WebTestCase which will shut down the currently used kernel (if there is one) in Web functional tests
2011-05-03 14:17:33 +10:00
Kris Wallsmith
4ea274244d
[Form] updated listener to check that data is an array
2011-05-02 15:56:35 -07:00
Fabien Potencier
8746f7b902
Merge remote branch 'Seldaek/exception_logging'
...
* Seldaek/exception_logging:
Fixed status code check
[HttpKernel] Log 500+ errors as critical and not error
2011-05-02 22:58:19 +02:00
Jordi Boggiano
fd08f187c8
Fixed status code check
2011-05-02 21:50:21 +02:00
Jordi Boggiano
e0c12fa080
[HttpKernel] Removed log() from the LoggerInterface as the priority can not be safely determined across implementations
2011-05-02 19:04:49 +02:00
Jordi Boggiano
838853e58b
[HttpKernel] Log 500+ errors as critical and not error
...
This allows people to filter easily between 404 type of responses (that are mostly for users) and real errors in their application (where they probably want to get an email notification
2011-05-02 18:49:30 +02:00
Kris Wallsmith
562d84a964
updated my email address
2011-05-02 05:59:56 -07:00
Fabien Potencier
0642b60079
Merge remote branch 'lsmith77/serializer'
...
* lsmith77/serializer:
make it possible to read the normalizerCache when inheriting
2011-05-01 17:30:53 +02:00
Fabien Potencier
82e1713850
Merge remote branch 'hhamon/console_fix'
...
* hhamon/console_fix:
[Console] fixed phpdoc for Command class.
2011-05-01 17:30:24 +02:00
Fabien Potencier
0b165e13b2
[DependencyInjection] added public attribute when dumping a container to XML
2011-05-01 17:21:19 +02:00
Fabien Potencier
6fec656239
[DependencyInjection] forced anonymous services to always be private
2011-05-01 17:21:18 +02:00
Fabien Potencier
8b0450083a
[DependencyInjection] removed unused vars
2011-05-01 17:21:17 +02:00
Hugo Hamon
c6bd284ecd
[Console] fixed phpdoc for Command class.
2011-04-30 22:17:30 +02:00
Fabien Potencier
d31c403bae
Merge remote branch 'pborreli/tests-fix-typos'
...
* pborreli/tests-fix-typos:
Various typos
[WebProfilerBundle] Fixed typo
[WebProfilerBundle] Adding unit tests
2011-04-30 21:53:15 +02:00
Pascal Borreli
391744719a
Various typos
2011-04-30 19:40:15 +00:00
Johannes Schmitt
0d0c737630
Merge remote branch 'origin/master' into annotations
...
Conflicts:
UPDATE.md
2011-04-30 10:55:43 +02:00
Fabien Potencier
158181d34b
Merge remote branch 'danielholmes/request_context_routing'
...
* danielholmes/request_context_routing:
[Routing] added setContext to RouterInterfaces as it is used on RouterInterface references
2011-04-30 07:26:04 +02:00
Daniel Holmes
b14db26062
[Routing] added setContext to RouterInterfaces as it is used on RouterInterface references
2011-04-30 13:56:40 +10:00
Lukas Kahwe Smith
3248f02067
make it possible to read the normalizerCache when inheriting
...
see https://github.com/FriendsOfSymfony/RestBundle/compare/lazy_normalizer_refactoring
2011-04-29 23:51:37 +02:00
Victor Berchet
dccac192d6
[HttpFoundation] Sanitize uploaded file original name
2011-04-29 19:27:53 +02:00
Johannes Schmitt
73b92db612
[Routing] updated to changes
2011-04-29 17:44:56 +02:00
Johannes Schmitt
7e26575bbd
[FrameworkBundle] added framework-wide annotation reader, updated validator tests
2011-04-29 15:54:44 +02:00
Johannes Schmitt
d151d2d4b8
added Annotations library
2011-04-28 23:09:08 +02:00
Amal Raghav
26bfa43bfc
fixed a typo
2011-04-28 23:37:40 +05:30
Eriksen Costa
12968f144c
[Locale] updated ICU data, changes to note:
...
- The Indian Rupee sign was updated, few fonts supports it: http://en.wikipedia.org/wiki/Indian_rupee_sign
- Updated LocaleTypeTest, zh_Hans_MO was removed from ICU
2011-04-28 11:57:55 -03:00
Fabien Potencier
4cbc33a785
removed the automatic loading of the compiled classes (should be done explicitely by the end user now)
2011-04-28 14:19:10 +02:00
Fabien Potencier
3fe385e4fb
removed the autoloader map feature
...
This feature added complexity to the framework but wasn't used in the core anyway.
You can still use the Map class loader in your application though. But most of the time, using the APC
autoloader is just better.
2011-04-28 13:38:22 +02:00
Fabien Potencier
05f1481c6a
[Form] added the possibility to configure the CSRF field name and the disabling of the CSRF feature altogether
2011-04-28 11:28:44 +02:00
Fabien Potencier
2e9278993c
added Definition::getArgument() (very useful when unit testing a Container)
2011-04-28 11:26:10 +02:00
Fabien Potencier
77f9daf374
[HttpKernel] allowed bundle names to have 'bundle' in their base name
2011-04-28 08:55:43 +02:00
Fabien Potencier
40d256e058
Merge remote branch 'kriswallsmith/kernel/bundle-extension'
...
* kriswallsmith/kernel/bundle-extension:
[HttpKernel] added check of default extension alias convention
[AsseticBundle] coding standard and comment tweaks
[HttpKernel] added BundleInterface::getContainerExtension() which is implicitly loaded
2011-04-28 08:48:57 +02:00
Fabien Potencier
751eaab326
Merge remote branch 'mweimerskirch/form_fixes'
...
* mweimerskirch/form_fixes:
Fix DateTimeType by adding missing default options
2011-04-28 08:18:28 +02:00
Fabien Potencier
f865a79742
[Form] fixed DateTimeToTimestampTransformer to use the proper exception class
2011-04-28 08:07:19 +02:00
Fabien Potencier
0007702321
Merge remote branch 'Seldaek/datetime'
...
* Seldaek/datetime:
[Form] Use proper transformation exception in case of failure
2011-04-28 08:05:08 +02:00
Fabien Potencier
9e23189eb1
Merge remote branch 'Brouznouf/patch-2'
...
* Brouznouf/patch-2:
[Serializer] [XmlEncoder] Add unit test for decoding / encoding root with attributes
[Seriliazer] [XmlEncoder] Optimize conditions
[Serializer] [XmlEncoder] Allow decoder to extract attributes in root element
2011-04-28 07:49:55 +02:00
Stepan Tanasiychuk
411997dc59
fix wrong method name
2011-04-27 23:15:27 +03:00
Fabien Potencier
289d35a7ae
Merge remote branch 'opensky/form-interface-use-statements'
...
* opensky/form-interface-use-statements:
[Form] Remove unnecessary use statements in EventListeners
2011-04-27 18:23:04 +02:00
Jeremy Mikola
f59423626a
[Form] Remove unnecessary use statements in EventListeners
2011-04-27 12:18:45 -04:00
Joel Wurtz
f11cc2de0b
[Seriliazer] [XmlEncoder] Optimize conditions
2011-04-27 08:00:31 -07:00
sasezaki
3d85db8fbc
fixed typoe on Exception message
2011-04-27 23:04:13 +09:00
Joel Wurtz
b6a9935314
[Serializer] [XmlEncoder] Allow decoder to extract attributes in root element
2011-04-27 06:34:41 -07:00
Joel Wurtz
a56e271025
[Serializer] Fix bug when denormalize a class in cache
2011-04-27 03:24:52 -07:00
Victor Berchet
d350e01e33
File & UploadedFile tweaks
2011-04-27 09:10:41 +02:00
Fabien Potencier
00bfd10ca9
[HttpFoundation] refactored File management to be safer
2011-04-27 08:50:33 +02:00
Fabien Potencier
b7cd7115d1
[HttpFoundation] removed protected methods that were not used
2011-04-27 08:04:10 +02:00
Fabien Potencier
5bb9da4b6d
[HttpFoundation] renamed getDefaultExtension() to guessExtension()
...
The renamed method now returns null if it cannot guess the extension. It allows
the developper to know whether the extension has been guessed or not.
2011-04-27 08:03:19 +02:00
Fabien Potencier
a26de5ba58
[HttpFoundation] fixed CS
2011-04-27 08:03:15 +02:00
Fabien Potencier
854fbd7f68
[HttpFoundation] use realpath to ensure that there is no .. in file path (to match phpdoc)
2011-04-27 07:58:54 +02:00
Fabien Potencier
9f846997ef
Merge remote branch 'Infranology/normalize-bools'
...
* Infranology/normalize-bools:
capitalized 'boolean'
replaced 'bool' with 'Boolean'
2011-04-27 07:48:12 +02:00
Eriksen Costa
164ce5210d
capitalized 'boolean'
2011-04-27 02:35:10 -03:00
Eriksen Costa
4db0752894
replaced 'bool' with 'Boolean'
2011-04-27 02:35:03 -03:00
Fabien Potencier
aa3ec504ae
removed File::getWebPath()
...
This has been removed for several reasons:
* the framework does not know where the document root is and should not care
* as the document root was static, it was impossible to have several document roots depending on some business rules (see next one)
* sometimes, the document root is not under the web root directory (so the logic of getWebPath() is not always correct)
* the feature was not used anywhere in the core
2011-04-27 06:49:05 +02:00
Francis Besset
886149fa00
[Validator] Refactoring DateTimeValidator and DateValidator
2011-04-27 00:14:31 +02:00
Francis Besset
c6d39ed61f
[Validator] Date: check if the value is a DateTime instance
2011-04-27 00:09:57 +02:00
Kris Wallsmith
5dc1a9bb58
[Process] added optional argument for default executable
2011-04-26 07:45:16 -07:00
Kris Wallsmith
97f66e93ac
[HttpKernel] added check of default extension alias convention
2011-04-26 07:17:45 -07:00
Jordi Boggiano
d11b7baa7e
[Form] Use proper transformation exception in case of failure
2011-04-26 16:02:01 +02:00
Fabien Potencier
0ac679e73c
Merge remote branch 'markchalloner/master'
...
* markchalloner/master:
[Validator] Updated ContraintViolationList ArrayAccess setter to check equivalence to null instead of using is_null
Implemented ArrayAccess interface
2011-04-26 15:34:47 +02:00
Fabien Potencier
e2741cefc4
[Process] changed ExecutableFinder to return false instead of throwing an exception when the executable is not found
...
I've made the change as the executable goal is to find the executable. The fact that it does not find it is
part of the contract and it is not exceptional.
2011-04-26 15:18:24 +02:00
Fabien Potencier
f12146d0ec
Merge remote branch 'schmittjoh/process'
...
* schmittjoh/process:
[Process] use component exception
[Process][Assetic] refactored some code to allow for better executable defaults
2011-04-26 15:01:29 +02:00
Fabien Potencier
fe03671c2c
Merge remote branch 'vicb/cast-array'
...
* vicb/cast-array:
Make casting scalar to array consistent
2011-04-26 14:32:53 +02:00
Fabien Potencier
98e70f0963
[Routing] Route collection prefixes must start with a / and must not end with a /
2011-04-26 14:27:55 +02:00
Michel Weimerskirch
87c609b4a4
Fix DateTimeType by adding missing default options
2011-04-26 14:21:00 +02:00
Fabien Potencier
175f944f93
[DependencyInjection] added NonExistentParameterException that indicates where a non-existent parameter is being used
2011-04-26 12:36:25 +02:00
Victor Berchet
f83e92bf44
Make casting scalar to array consistent
2011-04-26 12:16:35 +02:00
Fabien Potencier
fefee0d5e5
[Routing] fixed URL generation when an optional variable value is 0
2011-04-26 09:50:57 +02:00
Kris Wallsmith
7dfe286897
[AsseticBundle] coding standard and comment tweaks
2011-04-26 00:18:22 -07:00
Fabien Potencier
035afc1f4e
[Routing] fixed regression in Routing matching algorithm
2011-04-26 09:01:25 +02:00
Kris Wallsmith
7a7b448680
[HttpKernel] added BundleInterface::getContainerExtension() which is implicitly loaded
2011-04-25 21:12:35 -07:00
Artur Kotyrba
88e78e6f44
[Translation] removed unnecessary default parameter value
2011-04-25 22:58:23 +02:00
Artur Kotyrba
f9f02a9047
[HttpKernel] removed unused argument passed to ClosureLoader constructor
2011-04-25 22:58:23 +02:00
Artur Kotyrba
533e2d994b
[BrowserKit] fixed typo
2011-04-25 22:58:23 +02:00
Artur Kotyrba
713e8c26a6
[Routing] removed redundant parameter in addRoute method
2011-04-25 22:58:23 +02:00
Fabien Potencier
944a98086e
[Routing] optimized PHP route dumper
2011-04-25 17:45:59 +02:00
Fabien Potencier
7c95bda751
[Routing] simplified route compiler
2011-04-25 12:38:20 +02:00
Fabien Potencier
889c422d6e
Merge remote branch 'igorw/ipv6'
...
* igorw/ipv6:
[HttpFoundation] minor optimization
minor adjustments suggested by vicb
[HttpFoundation] IPv6 support for RequestMatcher
[HttpFoundation] refactor RequestMatcherTest to use dataProvider
[Validator] use full iPv6 regex
[Validator] add IPv6 support to UrlValidator
[HttpFoundation] add IPv6 support to Request
[HttpFoundation] test Request::create with an IP as host name
[HttpFoundation] refactor Request::getClientIp test
2011-04-24 22:04:25 +02:00
Fabien Potencier
36a63be0a5
Merge remote branch 'dustinwhittle/master'
...
* dustinwhittle/master:
[Classloader] Added phpdoc with example usage + refactored unit tests fixtures
[Classloader] Refactored ApcUniversalClassLoader to use setUp() to detect APC
[Classloader] Fixed typo + coding standards in ApcUniversalClassLoader test
[Classloader] Fixed APC class loader + added unit tests
2011-04-24 22:02:59 +02:00
Fabien Potencier
c0a160b5f9
partially reverted previous merge
2011-04-24 22:02:19 +02:00
Fabien Potencier
c6e0ccfdcd
Merge remote branch 'pborreli/form-typo'
...
* pborreli/form-typo:
[Form] Fixed typos
2011-04-24 21:56:47 +02:00
Fabien Potencier
f251eab92f
Revert "[Form] added a way to register a Form extension after creation of the FormFactory"
...
This reverts commit 2b8c7f84b5
.
2011-04-24 21:56:06 +02:00
Fabien Potencier
2f3ddb88ef
Merge remote branch 'bschussek/form'
...
* bschussek/form:
[Form] Automatically setting "data_class" option if objects are passed at the creation of a form
[Form] Improved the way passed data is handled in FormFactory
[Form] Simplified FileType code
[HttpFoundation] TemporaryStorage automatically creates the directory if it doesn't exist yet
[Form] Changed FormBuilder::build() to FormBuilder::create(). You hvae to pass the resulting builder to FormBuilder::add() manually now
[Form] Added FieldTypeValidatorExtension and fixed FQCN of DelegatingValidator
2011-04-24 21:53:24 +02:00
Pascal Borreli
06b3c386d9
[Form] Fixed typos
2011-04-24 14:05:16 +00:00
Dustin Whittle
e8bb64c17c
[Classloader] Added phpdoc with example usage + refactored unit tests fixtures
2011-04-24 07:00:27 -07:00
Dustin Whittle
dbb5ca459d
[Classloader] Fixed APC class loader + added unit tests
2011-04-24 07:00:26 -07:00
Fabien Potencier
08bf2af455
fixed email
2011-04-24 13:59:46 +02:00
Bernhard Schussek
e790587dc2
[Form] Automatically setting "data_class" option if objects are passed at the creation of a form
...
$form = $this->get('form.factory')->create(new PostType(), $post);
2011-04-24 13:38:12 +02:00
Bernhard Schussek
d58c610833
[Form] Improved the way passed data is handled in FormFactory
2011-04-24 13:32:29 +02:00
Fabien Potencier
4ed8d4f6b5
[Routing] fixed URL generation when a non-optional variable is empty
2011-04-24 13:06:02 +02:00
Bernhard Schussek
335f7e776a
[Form] Simplified FileType code
2011-04-24 12:08:56 +02:00
Bernhard Schussek
19073ae655
[HttpFoundation] TemporaryStorage automatically creates the directory if it doesn't exist yet
2011-04-24 12:08:56 +02:00
Bernhard Schussek
675e5ded9e
[Form] Changed FormBuilder::build() to FormBuilder::create(). You hvae to pass the resulting builder to FormBuilder::add() manually now
...
$builder->add(
$builder->create('child', 'form')
->add('foo', 'text')
->add('bar', 'text')
);
2011-04-24 12:08:50 +02:00
Fabien Potencier
8eb1dfc6a0
[Translation] forced translated id to strings
2011-04-24 09:42:41 +02:00
Fabien Potencier
b906cb59b8
Merge remote branch 'lsmith77/getAllPrevious'
...
* lsmith77/getAllPrevious:
renamed getPreviouses() to getAllPrevious
2011-04-24 08:46:54 +02:00
Fabien Potencier
823be5d956
Merge remote branch 'ornicar/fixDelegatingValidatorNamespace'
...
* ornicar/fixDelegatingValidatorNamespace:
[Form] Fix DelegatingValidator namespace
2011-04-24 08:45:50 +02:00
Fabien Potencier
27ae0a341d
Merge remote branch 'weaverryan/form_tweaks'
...
* weaverryan/form_tweaks:
[Form] Removing an unused variable in TimeType
[Form] Throwing exception for invalid "input" type of DateType
[Form] Removing unused private property and adding PHPDoc
[Form] Fixing wrong variable name
[Form] Tweak to FileTypeTest to avoid warning
[Form] Adding an exception for an invalid widget option in DateType
2011-04-24 08:45:44 +02:00
Fabien Potencier
7d8a3f76bb
[HttpKernel] made some minor tweaks
2011-04-24 08:44:29 +02:00
ornicar
b5055bb4fd
[Form] Fix DelegatingValidator namespace
2011-04-23 23:20:56 -07:00
Ryan Weaver
181ef3cc08
[Form] Removing an unused variable in TimeType
2011-04-23 20:52:26 -05:00
Ryan Weaver
af8aad9c34
[Form] Throwing exception for invalid "input" type of DateType
...
Also fixed typo in test of previous commit
2011-04-23 20:36:40 -05:00
Ryan Weaver
f435ed7e7e
[Form] Removing unused private property and adding PHPDoc
2011-04-23 20:14:12 -05:00
Ryan Weaver
0681e443d5
[Form] Fixing wrong variable name
2011-04-23 20:08:24 -05:00
Ryan Weaver
78b2062c5e
[Form] Adding an exception for an invalid widget option in DateType
2011-04-23 19:42:40 -05:00
Lukas Kahwe Smith
fd97c0caca
renamed getPreviouses() to getAllPrevious
2011-04-24 01:08:15 +02:00
Fabien Potencier
278223d950
Merge remote branch 'pborreli/phpdoc-fix'
...
* pborreli/phpdoc-fix:
[Phpdoc] Cleaning/fixing
[FrameworkBundle] Fixed typo in css
2011-04-23 21:50:16 +02:00
Fabien Potencier
8b74c6eb9c
[DomCrawler] refactored URLs management in Link and Form
2011-04-23 21:45:44 +02:00
Pascal Borreli
8c0beea677
[Phpdoc] Cleaning/fixing
2011-04-23 15:18:47 +00:00
Fabien Potencier
50d3c92e22
tweaked TemporaryStorage directory creation
2011-04-23 15:19:30 +02:00
Fabien Potencier
8cc5caf1f3
changed the default directory for the upload temp dir, made the dir mandatory
2011-04-23 15:09:55 +02:00
Fabien Potencier
02c66e658c
removed the nestingLevel configuration for file temporary storages
2011-04-23 15:06:07 +02:00
Lukas Kahwe Smith
d9491a743e
removed support for interface injection as well as all relevant tests
2011-04-23 11:42:31 +02:00
Fabien Potencier
2b8c7f84b5
[Form] added a way to register a Form extension after creation of the FormFactory
2011-04-23 09:28:29 +02:00
Fabien Potencier
b69c5956d3
[Form] added missing use statement
2011-04-23 09:27:47 +02:00
Fabien Potencier
9a4da005a2
Merge remote branch 'bschussek/form-extensions'
...
* bschussek/form-extensions:
[Form] Refactored code from CoreExtension to new ValidatorExtension
[Form] Added FormTypeExtensionInterface
[Form] Reorganized code into "form extensions"
2011-04-23 09:11:25 +02:00
Pascal Borreli
b5769c52d6
Fixed various typo
2011-04-22 23:12:50 +00:00
Igor Wiedler
041a2e9d83
[HttpFoundation] minor optimization
2011-04-22 22:20:12 +02:00
Bernhard Schussek
6f1bc356a8
[Form] Refactored code from CoreExtension to new ValidatorExtension
...
CoreExtension is now independent of the Symfony2 validator.
2011-04-22 19:38:21 +02:00
Bernhard Schussek
1ce2db87e2
[Form] Added FormTypeExtensionInterface
...
With implementations of this interface, existing types can be amended.
The Csrf extension, for example, now contains a class FormTypeCsrfExtension
that adds CSRF capabilities to the "form" type.
To register new type extensions in the DIC, tag them with "form.type_extension"
and the name of the extended type as alias.
2011-04-22 19:24:38 +02:00
Igor Wiedler
51d12758a0
minor adjustments suggested by vicb
2011-04-22 18:37:20 +02:00
Bernhard Schussek
54e66c518f
[Form] Reorganized code into "form extensions"
...
The extension classes are now the only constructor argument of the FormFactory class. They replace the existing "type loader" classes.
new FormFactory(array(
new CoreExtension($validator, $storage),
new CsrfExtension($csrfProvider),
new DoctrineOrmExtension($em),
));
Together with a few upcoming commits this mechanism will make
* extension of the form framework in bundles and
* usage of the forms outside of Symfony2
much easier.
2011-04-22 17:41:21 +02:00
Igor Wiedler
9ae5023a70
[HttpFoundation] IPv6 support for RequestMatcher
2011-04-22 17:37:22 +02:00
Igor Wiedler
e5b923a0ec
[Validator] use full iPv6 regex
...
it was taken from:
https://github.com/strattg/ipv6-address-test/blob/master/Tests/Rfc3986RegexTest.php
2011-04-22 17:07:44 +02:00
Igor Wiedler
afcdbf8b79
[Validator] add IPv6 support to UrlValidator
2011-04-22 17:07:44 +02:00
Igor Wiedler
82699c5a98
[HttpFoundation] add IPv6 support to Request
2011-04-22 17:07:44 +02:00
Fabien Potencier
417839345f
Merge remote branch 'lsmith77/request_format_tweaks'
...
* lsmith77/request_format_tweaks:
added text/html to default format mapping
return "q" from splitHttpAcceptHeader() to enable more complex accept header negotiations
added support for setting a custom default format in Request::getRequestFormat()
2011-04-22 15:33:01 +02:00
Fabien Potencier
fd05f02b23
[HttpFoundation] added logic to automatically add the charset when not present in the Content-Type for relevant Content-Types
2011-04-22 15:26:38 +02:00
Fabien Potencier
7644e86683
refactored session configuration
...
* made the options array only for "global" options that are valid for all session storages
* changed the PDO session storage constructor signature to accept an array of options for DB configuration
* changed the storage_id to be the full service id, instead of just part of it
* removed the class parameter for session as it can be changed via the .class parameter (it was the only example in the framework)
* removed the configuration for the PDO session storage for now
2011-04-22 13:34:57 +02:00
Bernhard Schussek
a97366fbcb
[Form] Split signature of FormFactory::create() into create() and createNamed()
...
The data can now be passed to all creation methods:
$form = $factory->create('form', $data);
By default, a form will receive the name of its type ("form" in above example). If you wish to pass a custom name, use createNamed():
$form = $factory->createNamed('form', 'myform', $data);
2011-04-22 10:42:21 +02:00
Fabien Potencier
0069a70e42
Merge branch 'form'
...
* form: (291 commits)
[FrameworkBundle] updated method call
[Form] Removing excess option in the TimezoneType
[FrameworkBundle] Adding check for invalid form type for better exception message
[TwigBundle] Removing dbug text in form template
[Form] Removed obsolete code in TextType
[Form] fixed translations escaping
[Form] Adding a check that the choice_list option on the ChoiceType implements the ChoiceListInterface.
[Form] added support for groups in form validation (when using array data)
[Form] fixed error bubbling for choices when expanded is true
[Form] added a unit test
[Form] Removed obsolete view variables
[Form] Renamed ChoiceUtil to FormUtil and gave its methods more general names
[Form] Changed separator for Twig blocks from double underscore to single underscore to match the PHP template separator
[Form] Removed StripTagsListenerTest
[Form] Removed StripTagsListener. Its implementation is insufficient and needs to be replaced by a better one.
[Form] added a way to specify the form constraint when building the form (useful if you work with arrays instead of objects)
[Form] Added test for 'email' type and fixed a few bugs
[Form] Removed obsolete constraints from validation.xml
Revert "[Form] removed validation.xml file (not used anymore)"
Added html5 email input to the forms
...
2011-04-22 09:36:52 +02:00
Fabien Potencier
de8f10e236
Merge remote branch 'Infranology/framework-bundle-updated-method-call' into form
...
* Infranology/framework-bundle-updated-method-call: (91 commits)
[FrameworkBundle] updated method call
moved DoctrineMongoDBBundle to its own repository
[AsseticBundle] fixed unit tests
[FrameworkBundle] removed unneeded files in tests
updated vendors
[FrameworkBundle] removed the need to boot a Kernel in a unit test file
[FrameworkBundle] removed the need to boot a Kernel in a unit test file
[Routing] added getContext() accessor
[HttpFoundation] fixed a potential security problem in Request
updated vendors
Added 201 to the possible status codes that indicate a response is a redirect.
[FrameworkBundle] made ESI URL relative as allowed by the spec (no need to generate absolute URLs)
[AsseticBundle] fixed router and controller
[AsseticBundle] removed fake front controller from URL before creating route
[AsseticBundle] updated twig integration to check debug mode at runtime rather than compile time since twig cannot vary its cache by debug mode
[Routing] the global parameters must not be added in the QS when generating URLs
removed the possibility to pass a message to the trans tag
simplified exceptions as Twig is now smart enough to automatically add line information
made the %count% variable automatically available when using the transchoice filter (similar to how the tag works)
[Container] Added function array_unique on getServiceIds to return only one service name
...
2011-04-22 09:35:11 +02:00
Fabien Potencier
f626afcdef
Merge remote branch 'weaverryan/validator_choice_message_changes'
...
* weaverryan/validator_choice_message_changes:
[Validator] Modifying Choice message and adding a different multiple message
2011-04-22 08:40:08 +02:00
Eriksen Costa
9cf7fba913
Merge branch 'master' into fix-stub-locale-method-signature
2011-04-22 00:07:29 -03:00
Eriksen Costa
589b0ab4ed
Merge branch 'master' into form-frameworkbundle-form-guessers-fix
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormGuessersPass.php
src/Symfony/Component/Form/MoneyField.php
2011-04-21 23:03:40 -03:00
Ryan Weaver
1856601524
[Validator] Modifying Choice message and adding a different multiple message
2011-04-21 20:05:13 -05:00
Ryan Weaver
df50e2b161
[Form] Removing excess option in the TimezoneType
2011-04-21 19:57:53 -05:00
Fabien Potencier
8b2b8e16dc
Merge remote branch 'schmittjoh/referenceValidation'
...
* schmittjoh/referenceValidation:
[DependencyInjection] also check references of inlined services
[DependencyInjection] adds emulation of "exception-on-invalid-reference" behavior
2011-04-21 22:44:20 +02:00
Fabien Potencier
813627bd4c
[Routing] added getContext() accessor
2011-04-21 21:20:27 +02:00
Fabien Potencier
c5497c7c67
[HttpFoundation] fixed a potential security problem in Request
2011-04-21 20:00:27 +02:00
Fabien Potencier
a2ab05e9c2
Merge remote branch 'web-dev/master'
...
* web-dev/master:
Added 201 to the possible status codes that indicate a response is a redirect.
2011-04-21 19:51:30 +02:00
Josiah
98e46a23fa
Added 201 to the possible status codes that indicate a response is a redirect.
2011-04-21 10:36:25 -07:00
Fabien Potencier
9a2d4c77c3
Merge remote branch 'Garfield-fr/master'
...
* Garfield-fr/master:
[Container] Added function array_unique on getServiceIds to return only one service name
2011-04-21 18:31:55 +02:00
Bernhard Schussek
c58b05a6d6
[Form] Removed obsolete code in TextType
2011-04-21 10:17:04 +02:00
Fabien Potencier
7e33159723
[Routing] the global parameters must not be added in the QS when generating URLs
2011-04-21 09:52:35 +02:00
Bertrand Zuchuat
7ed8ea25d8
[Container] Added function array_unique on getServiceIds to return only one service name
2011-04-20 23:45:36 +02:00
Fabien Potencier
071caeb0c8
Merge remote branch 'merk/file'
...
* merk/file:
[HttpFoundation\File] Removed realpath()
2011-04-20 23:13:55 +02:00
Fabien Potencier
d721cbe1e2
Merge remote branch 'kriswallsmith/http/filesystem-session-fix'
...
* kriswallsmith/http/filesystem-session-fix:
[HttpFoundation] fixed FilesystemSessionStorage
2011-04-20 23:09:04 +02:00
Fabien Potencier
ace5e26406
Merge remote branch 'schmittjoh/security'
...
* schmittjoh/security:
[Security/Core] force implementations to accept null values
[Security/Acl] some misc fixes
[Security/Acl] removed Doctrine dependency from interfaces and moved them to the actual implementation
[SecurityBundle] changed expected value for token_provider key in the rememberme section
2011-04-20 23:07:33 +02:00
Fabien Potencier
c6dcf0f8f3
[Routing] added a way to set default parameters that are applied when generating URLs
2011-04-20 23:01:05 +02:00
Fabien Potencier
f7d44148df
[Routing] removed unused defaults variable
2011-04-20 22:55:23 +02:00
Johannes Schmitt
192592ec9b
[Security/Core] force implementations to accept null values
2011-04-20 22:38:16 +02:00
Johannes Schmitt
f697fe3b26
[Security/Acl] some misc fixes
2011-04-20 22:35:17 +02:00
Johannes Schmitt
4d6e239f10
[Security/Acl] removed Doctrine dependency from interfaces and moved them to the actual implementation
2011-04-20 22:25:05 +02:00
Kris Wallsmith
30511d2965
[HttpFoundation] fixed FilesystemSessionStorage
2011-04-20 13:20:21 -07:00
Fabien Potencier
fd1636b324
[Routing] added RedirectableUrlMatcher
2011-04-20 15:54:48 +02:00
Ryan Weaver
967a42b797
[Form] Adding a check that the choice_list option on the ChoiceType implements the ChoiceListInterface.
...
Also removed an unused "use" statement.
2011-04-20 08:52:31 -05:00
Tim Nagel
03bb3580a6
[HttpFoundation\File] Removed realpath()
2011-04-20 23:52:17 +10:00
Fabien Potencier
9d2ea4ec31
Merge remote branch 'kriswallsmith/dic/method-renames'
...
* kriswallsmith/dic/method-renames:
added method renames to UPDATE
[DependencyInjection] renamed ContainerBuilder::remove() as removeDefinition() to be more consistent with other definition-related methods
[DependencyInjection] renamed Definition::setArgument() as replaceArgument() to be more specific
2011-04-20 14:28:09 +02:00
Fabien Potencier
0dbfa18c46
[Routing] made a small optimization to the route dumper
2011-04-20 14:19:33 +02:00
Fabien Potencier
117321d3c6
replaced array for request context in Routing by a RequestContext class
2011-04-20 14:19:32 +02:00
Kris Wallsmith
470baaab9f
[DependencyInjection] renamed ContainerBuilder::remove() as removeDefinition() to be more consistent with other definition-related methods
2011-04-20 04:48:19 -07:00
Kris Wallsmith
cdf706d357
[DependencyInjection] renamed Definition::setArgument() as replaceArgument() to be more specific
2011-04-20 04:47:44 -07:00
Fabien Potencier
07aae98495
[Routing] added support for _scheme requirement
...
The _scheme requirement can be used to force routes to always match one given scheme
and to always be generated with the given scheme.
So, if _scheme is set to https, URL generation will force an absolute URL if the
current scheme is http. And if you request the URL with http, you will be redirected
to the https URL.
2011-04-20 10:49:32 +02:00
Fabien Potencier
d993a9160a
[HttpFoundation] fixed getScheme() method
2011-04-20 10:49:08 +02:00
Johannes M. Schmitt
c660fcd2f2
fixes a bug in the SwitchUserListener
2011-04-19 14:24:37 +02:00
Fabien Potencier
2014ff6856
merged lsmith77/url_generator_null_parameter
2011-04-19 14:21:14 +02:00
Fabien Potencier
e09a0f9f80
Merge remote branch 'brikou/coding_standards'
...
* brikou/coding_standards:
removed empty lines/trailing spaces
2011-04-19 14:06:30 +02:00
Fabien Potencier
5ff67a8d54
made request data collector more robust when the user got the request content as a resource
2011-04-19 14:02:32 +02:00
Fabien Potencier
3ca5f513a4
[Form] added support for groups in form validation (when using array data)
2011-04-19 09:56:49 +02:00
Fabien Potencier
5242859920
[Form] fixed error bubbling for choices when expanded is true
2011-04-19 09:13:29 +02:00
Bernhard Schussek
d93e10160c
[Form] Removed obsolete view variables
2011-04-18 15:47:18 +02:00
Lukas Kahwe Smith
1ecaade68d
added support for parameters with default null
2011-04-18 15:35:05 +02:00
Bernhard Schussek
b93f5a372a
[Form] Renamed ChoiceUtil to FormUtil and gave its methods more general names
2011-04-18 15:07:12 +02:00
Bernhard Schussek
abb0d0cde1
[Form] Removed StripTagsListener. Its implementation is insufficient and needs to be replaced by a better one.
...
The current implementation does not sanitize HTML properly. See [1] and [2] for more information.
[1] https://github.com/padraic/wibble
[2] http://blog.astrumfutura.com/?s=html+sanitising
2011-04-18 14:19:20 +02:00
Fabien Potencier
bee5d07d86
[Form] added a way to specify the form constraint when building the form (useful if you work with arrays instead of objects)
2011-04-18 14:09:29 +02:00
Bernhard Schussek
57722550de
[Form] Added test for 'email' type and fixed a few bugs
2011-04-18 13:04:18 +02:00
Bernhard Schussek
23e9ad7a99
Merge remote branch 'mvrhov/email_type' into mvrhov_merge
2011-04-18 12:57:38 +02:00
Bernhard Schussek
eb21dc9fea
[Form] Removed obsolete constraints from validation.xml
2011-04-18 12:57:19 +02:00
Bernhard Schussek
325049ac73
Revert "[Form] removed validation.xml file (not used anymore)"
...
This reverts commit 3e476e1c30
.
2011-04-18 12:53:41 +02:00
Miha Vrhovnik
50011fa344
Added html5 email input to the forms
2011-04-18 11:17:41 +02:00
Miha Vrhovnik
43bcadbb80
Updating renamed event
2011-04-18 11:00:26 +02:00
Fabien Potencier
3a2ca3dd92
moved Doctrine2 Entity Type guesser to the Doctrine bridge
2011-04-18 08:44:37 +02:00
Fabien Potencier
4bfd5bf079
[Form] tweaked Date time transformer to allow fields with 0 as hour/minute/...
2011-04-17 22:50:22 +02:00
Fabien Potencier
3e476e1c30
[Form] removed validation.xml file (not used anymore)
2011-04-17 22:33:31 +02:00
Fabien Potencier
f4aae27904
Merge remote branch 'lsmith77/add_decoder_interface'
...
* lsmith77/add_decoder_interface:
added a DecodeInterface (and SerializerAwareInterface) to make it easier to identify if an Encoder also supports decoding
2011-04-17 19:30:13 +02:00
Bernhard Schussek
be5738564f
[Form] Improved regular expression in AbstractType::getName() and added unit tests
2011-04-17 18:01:22 +02:00
Bernhard Schussek
4905bfd285
Merge remote branch 'brikou/form' into form
2011-04-17 18:01:17 +02:00
Lukas Kahwe Smith
874c4b6e07
added a DecodeInterface (and SerializerAwareInterface) to make it easier to identify if an Encoder also supports decoding
2011-04-17 17:00:42 +02:00
Lukas Kahwe Smith
c2ac8304b0
added text/html to default format mapping
2011-04-17 14:39:07 +02:00
Lukas Kahwe Smith
4c3c6cdabf
return "q" from splitHttpAcceptHeader() to enable more complex accept header negotiations
2011-04-17 14:38:33 +02:00
Lukas Kahwe Smith
53c7bcf3aa
added support for setting a custom default format in Request::getRequestFormat()
2011-04-17 14:37:35 +02:00
Fabien Potencier
7a70236437
Merge remote branch 'schmittjoh/containerBaseClass'
...
* schmittjoh/containerBaseClass:
[DependencyInjection] make base class of generated container configurable
2011-04-17 14:15:36 +02:00
Fabien Potencier
62737c2495
Merge remote branch 'hidenorigoto/feature/add-server-param-method'
...
* hidenorigoto/feature/add-server-param-method:
[BrowserKit] added tests for setServerParameter/getServerParameter methods
[BrowserKit] added getServerParameter method which makes setServerParameters/setServerParameter methods testable
[BrowserKit] added the method to Client which enables to set single server parameter
2011-04-17 14:14:49 +02:00
Fabien Potencier
5861a1b962
Merge remote branch 'merk/security/phpdoc'
...
* merk/security/phpdoc:
[Security] Added missing phpdoc
2011-04-17 14:11:49 +02:00
Johannes M. Schmitt
30bac46e1b
[DependencyInjection] make base class of generated container configurable
2011-04-17 12:29:33 +02:00
hidenorigoto
1d85a3dcb1
[BrowserKit] added getServerParameter method which makes setServerParameters/setServerParameter methods testable
2011-04-17 11:22:59 +09:00
hidenorigoto
54c3d236c2
[BrowserKit] added the method to Client which enables to set single server parameter
2011-04-17 10:45:32 +09:00
Fabien Potencier
c6818d8bf7
[HttpKernel] added support for controllers as arrays and object with an __invoke method
...
Controllers can now be any valid PHP callable
2011-04-16 16:26:15 +02:00
Tobias Naumann
f6ce451e2c
[Form] Made FormView implement Countable
2011-04-16 13:54:31 +02:00
Tim Nagel
ad86f9ff0d
[Security] Added missing phpdoc
2011-04-16 16:21:04 +10:00
Brikou CARRE
e898445b94
removed empty lines/trailing spaces
2011-04-15 21:12:02 +02:00
Brikou CARRE
a83046f470
fixed regex (we don't need '?')
2011-04-15 19:04:53 +02:00
Brikou CARRE
28121e4a57
[Form] AbstractType::getName() improvement
2011-04-15 18:58:15 +02:00
Bernhard Schussek
30922d9375
[Form] Fixed: Checkboxes in an expanded choice field never have the 'required' HTML5 attribute. Closes http://trac.symfony-project.org/ticket/9588
2011-04-15 16:10:04 +02:00
Bernhard Schussek
9582221862
[Form] ResizeFormListener::preBind() now handles empty strings. Fixes https://github.com/symfony/symfony/pull/40
2011-04-15 15:43:02 +02:00
Bernhard Schussek
d0c572716a
Merge remote branch 'henrikbjorn/form' into henrik_merge
2011-04-15 15:34:29 +02:00
Henrik Bjørnskov
e687685f98
[Form] change FormView::setVar,getVar,getVars,hasVar to set,get,all,has
...
[Form] Fixed {get,set,has}Var references in templating php
[Form] Added getVars to FormView to ease usage in Twig. Also added some phpdoc and cleaned up the get method by adding a default value
[Form] Fix
[Form] Delete file generated by test
2011-04-15 15:25:37 +02:00
Bernhard Schussek
e787d5dc22
[Form] PropertyPath now can handle elements with special characters
2011-04-15 15:25:19 +02:00
Bernhard Schussek
4f1ae660fa
[Form] Fixed choice labels in expanded choice fields
2011-04-15 15:04:44 +02:00
Bernhard Schussek
41c6ab0ac7
[Form] Field labels can now be passed in the 'label' option
2011-04-15 15:03:10 +02:00
Bernhard Schussek
8fe21285ba
[Form] Renamed Form::getView() to createView() to clearly indicate that each call returns a new object
2011-04-15 13:52:11 +02:00
Bernhard Schussek
276b23a344
[Form] Moved creation logic of FormView to Form class
2011-04-15 13:41:45 +02:00
Fabien Potencier
db8b118e8a
Merge remote branch 'hidenorigoto/fix-methodname-case'
...
* hidenorigoto/fix-methodname-case:
[HttpFoundation] fixed wrong method name
2011-04-15 12:53:37 +02:00
Bernhard Schussek
44fa9bbeaa
[Form] Fixed: CSRF token is regenerated if validation fails to avoid stalled tokens. Closes https://github.com/symfony/symfony/pull/415
2011-04-15 12:50:50 +02:00
Bernhard Schussek
c9c8b5c98e
[Form] Improved test coverage of MonthChoiceList and fixed timezone used in it. Fixes https://github.com/symfony/symfony/pull/433
...
Based on dfb93b1bcebf1f34d3a880d00f36acb2bcca0f08:
[FORM] Fixed DateField Month Choices
The month choices were calculated using the current day of the month with
gmmktime rather than the 1st of the month. Additionally, this provides a
UTC timestamp which is passed to the formatter (IntlDateFormatter) which
converts the timestamp using the current timezone. This means that the UTC
timestamp for 1st March was being converted for my timezone (EST) and giving
a date of 28th February, leading to Feb appearing again in the popup form
instead of Mar.
2011-04-15 12:26:07 +02:00
Fabien Potencier
7e58c3f976
[Routing] allowed default route variables to be null
2011-04-15 12:04:48 +02:00
hidenorigoto
1e78ec395c
[HttpFoundation] fixed wrong method name
2011-04-15 19:04:00 +09:00
Fabien Potencier
ad112da5bc
added the request content to the request data collector
2011-04-15 11:31:08 +02:00
Bernhard Schussek
77bea81ed5
[Form] Improved test coverage of ResizeFormListener. Fixed https://github.com/symfony/symfony/pull/493
2011-04-15 11:06:51 +02:00
Bernhard Schussek
fa457b1cc4
[Form] Renamed 'filter' listeners to 'on' to match naming conventions across the framework
2011-04-15 10:57:32 +02:00
Fabien Potencier
de390fd893
[DependencyInjection] removed timing info as it is useless
2011-04-15 10:42:56 +02:00
Fabien Potencier
0b563c32ac
Merge remote branch 'schmittjoh/diLogging'
...
* schmittjoh/diLogging:
[DependencyInjection] enable debug related passes only in debug environment
[DependencyInjection] removed pass time
[DependencyInjection] fixes a bug which might have occurred when using property injection under certain circumstances
[DependencyInjection] fixed method name
[FrameworkBundle] whitespace fix
[DependencyInjection] refactored code a bit, added some more logging messages
[DependencyInjection] dump a readable format
[DependencyInjection] better logging
2011-04-15 10:38:54 +02:00
Johannes Schmitt
fd5caa9546
[DependencyInjection] also check references of inlined services
2011-04-15 08:47:28 +02:00
Johannes Schmitt
ff41541d45
[DependencyInjection] removed pass time
2011-04-15 08:19:28 +02:00
Fabien Potencier
067bd0009e
Merge remote branch 'kriswallsmith/scalar-nodes'
...
* kriswallsmith/scalar-nodes:
removed a lot of special normalization logic in the configuration by using xml values instead of attributes
2011-04-15 07:44:22 +02:00
Johannes Schmitt
6d7a9d752d
[DependencyInjection] adds emulation of "exception-on-invalid-reference" behavior
...
This pass requires that all of references are valid at the end of
the compilation process.
2011-04-15 00:55:18 +02:00
Johannes M. Schmitt
1992c3b96d
[DependencyInjection] fixes a bug which might have occurred when using property injection under certain circumstances
2011-04-14 21:29:46 +02:00
Johannes M. Schmitt
75ac0f5dc3
[DependencyInjection] fixed method name
2011-04-14 21:07:16 +02:00
Johannes M. Schmitt
6ea9fb16c7
[DependencyInjection] refactored code a bit, added some more logging messages
2011-04-14 21:01:37 +02:00
Bernhard Schussek
e3db366116
[Form] Passing FormFactory to FormBuilder in its constructor
2011-04-14 15:25:30 +02:00
Bernhard Schussek
44af72bbf4
Merge remote branch 'symfony/master' into experimental
2011-04-14 15:04:59 +02:00
Bernhard Schussek
72b17cd67c
[Form] Renamed TemplateContext to FormView
2011-04-14 15:02:51 +02:00
Bernhard Schussek
ca6ae09779
[Form] Removed TemplateContext::create()
2011-04-14 14:42:17 +02:00
Fabien Potencier
9cc340a262
fixed inconsistencies in file locator classes
2011-04-14 12:52:22 +02:00
Bernhard Schussek
ce5f3073bd
Fixed test suite and names of accessor methods in TemplateContext
2011-04-14 03:52:52 +02:00
Fabien Potencier
5316decd8c
Merge remote branch 'hhamon/shared_maxage_fix'
...
* hhamon/shared_maxage_fix:
[HttpFoundation] force Response to be "public" if setSharedMaxAge() is called.
2011-04-13 23:24:31 +02:00
Fabien Potencier
b32a7e935a
simplified code
2011-04-13 23:18:28 +02:00
Fabien Potencier
ea84bb025b
fixed session management in functional tests
2011-04-13 23:11:25 +02:00
Fabien Potencier
6957dae4f9
[HttpKernel] added support for cookies in Client
2011-04-13 20:25:35 +02:00
Fabien Potencier
e2c9fdf2c7
[HttpFoundation] fixed expiration time for Cookie (PHP wants a Unix timestamp)
2011-04-13 20:12:14 +02:00
Fabien Potencier
66c4bc727c
[HttpFoundation] renamed Cookie::getExpire() to getExpiresTime() to be consistent with the DomCrawler component
2011-04-13 20:10:39 +02:00
Fabien Potencier
84dde4074a
[HttpFoundation] changed default value of Cookie httponly argument to match PHP defaults
2011-04-13 20:07:31 +02:00
hhamon
053d83f557
[HttpFoundation] force Response to be "public" if setSharedMaxAge() is called.
2011-04-13 15:58:48 +02:00
Bernhard Schussek
8031ad77c8
Merge remote branch 'fabpot/form' into fabpot_merge
2011-04-13 15:58:15 +02:00
Kris Wallsmith
672291087c
removed a lot of special normalization logic in the configuration by using xml values instead of attributes
2011-04-13 05:59:46 -07:00
Fabien Potencier
a6d790f89f
Merge remote branch 'hhamon/http_cache_fix'
...
* hhamon/http_cache_fix:
[HttpKernel] private $traces property was not initialized to an empty array. When using the getLog() method to debug traces, it led to a warning in the apache error log.
2011-04-13 14:38:32 +02:00
Fabien Potencier
fa6961bb91
Revert "Merge remote branch 'lsmith77/prevent_redundant_DI_method_calls'"
...
This reverts commit 0d61ae06b4
, reversing
changes made to 8e3d125902
.
2011-04-13 14:30:06 +02:00
Fabien Potencier
227c87404f
Merge remote branch 'Funsational/master'
...
* Funsational/master:
Update PDO session storage to check if any rows are updated when doing a session write. If no rows are udpated when performing a session write it generally means that we have created a new session id somewhere and we have not inserted into the database. This is the case for when calling regenerate_session_id() from the native session storage class. It will update the session id then call sessionWrite() to save the session but since the new session id does not exist in the DB, no rows are updated and any new session attributes such as security tokens are lost.
2011-04-13 14:27:16 +02:00
hhamon
facb67cbfa
[HttpKernel] private $traces property was not initialized to an empty array. When using the getLog() method to debug traces, it led to a warning in the apache error log.
2011-04-13 14:24:53 +02:00
Fabien Potencier
0d61ae06b4
Merge remote branch 'lsmith77/prevent_redundant_DI_method_calls'
...
* lsmith77/prevent_redundant_DI_method_calls:
do not add method calls from interface injection if a method call has already been set manually
2011-04-13 14:16:14 +02:00
Lukas Kahwe Smith
c9be18a79f
do not add method calls from interface injection if a method call has already been set manually
2011-04-13 14:11:56 +02:00
Fabien Potencier
4e047b5e27
Merge remote branch 'vicb/event_debug'
...
* vicb/event_debug:
[FrameworkBundle] Make some TraceableEventDispacther properties private
[Event] Tweak phpDoc for consistency
[FrameworkBundle] Add error detection to the TraceableEventDispatcher
2011-04-13 14:07:05 +02:00
George Giannoulopoulos
81e1d4f11d
Refactoring, replace is_null() wuth null ===
2011-04-13 13:56:15 +02:00
Bernhard Schussek
2a18be1c9f
Merge remote branch 'symfony/master' into experimental
2011-04-13 13:53:20 +02:00
Fabien Potencier
7913d7978e
[Form] removed DefaultFormFactory as it does not help that much and adds some confusion
2011-04-13 13:24:56 +02:00
Fabien Potencier
92f77cce97
Merge remote branch 'lsmith77/ResolveInvalidReferencesPass'
...
* lsmith77/ResolveInvalidReferencesPass:
updated tests (aka removed exceptions handling)
use synthetic services instead of special exceptions
2011-04-13 11:46:52 +02:00
Fabien Potencier
49dc836521
[Form] moved the template context creation to the Form class
...
Moving the template context creation makes sense and allows for simpler code for the end user:
Before:
return array('post' => $post, 'form' => $this->get('form.factory')->createTemplateContext($form));
After:
return array('post' => $post, 'form' => $form->getContext());
2011-04-13 09:31:13 +02:00
Fabien Potencier
94eed37a93
Merge remote branch 'schmittjoh/parameterBagEnhancement'
...
* schmittjoh/parameterBagEnhancement:
[HttpFoundation] added some unit tests
[HttpFoundation] allow to retrieve paths of arbitrary depths
2011-04-13 07:58:14 +02:00
Johannes Schmitt
2397bcbe94
[DependencyInjection] better logging
2011-04-13 00:51:32 +02:00
Fabien Potencier
d95a743d9f
Merge remote branch 'Brouznouf/master'
...
* Brouznouf/master:
[Serializer] Revert DOMElement to SimpleXmlElement
[Serializer] Using DOMElement instead of SimpleXmlElement in XmlEncoder to permit some behavior
2011-04-12 13:02:35 +02:00
Fabien Potencier
e6fd8deb00
[Security] tweaked some exception messages
2011-04-12 11:41:39 +02:00
Brouznouf
86343b43ec
[Serializer] Revert DOMElement to SimpleXmlElement
2011-04-12 11:18:17 +02:00
Brouznouf
b02c1d9f32
Merge remote branch 'upstream/master'
2011-04-12 11:17:09 +02:00
Fabien Potencier
41a1a75b92
[Process] made default options overridable
2011-04-12 11:04:35 +02:00
Fabien Potencier
7f911642e1
Merge remote branch 'pborreli/windows-process-fix'
...
* pborreli/windows-process-fix:
[Process][Windows] Don't use cmd for launching process (fixing Sismo git.exe calling)
2011-04-12 11:04:02 +02:00
Fabien Potencier
d163a60f54
[Security] fixed URL
2011-04-12 10:49:22 +02:00
Lukas Kahwe Smith
a4b04c4add
use synthetic services instead of special exceptions
2011-04-12 10:07:46 +02:00
Pascal Borreli
3e8874df75
Merge remote-tracking branch 'upstream/master' into windows-process-fix
2011-04-12 01:05:46 +00:00
Brouznouf
8e6233e9c2
[Serializer] Using DOMElement instead of SimpleXmlElement in XmlEncoder to permit some behavior
2011-04-12 00:58:21 +02:00
Fabien Potencier
aa26624161
Merge remote branch 'vicb/template_logical_name'
...
* vicb/template_logical_name:
Display template logical names in exception messages
2011-04-11 18:35:51 +02:00
Kris Wallsmith
c5fe4c390d
[Templating] cleaned up some anomalies in the engine
2011-04-11 09:20:47 -07:00
Fabien Potencier
7f2294395c
[Form] reverted the templating part to be similar to what we have today
2011-04-11 16:42:51 +02:00
Pascal Borreli
46b4098907
[Process][Windows] Don't use cmd for launching process (fixing Sismo git.exe calling)
2011-04-09 17:31:26 +00:00
Victor Berchet
e254ff8cc6
Display template logical names in exception messages
2011-04-08 19:56:12 +02:00
Fabien Potencier
9ceec87eb8
[DomCrawler] fixed various bug with URIs
2011-04-08 17:52:43 +02:00
Fabien Potencier
a230090537
removed some json_encode() calls to use the new getLogicalName() method instead
2011-04-08 17:28:27 +02:00
Fabien Potencier
5558ee24c7
Merge remote branch 'hason/logicalname'
...
* hason/logicalname:
[Templating] changed __toString method (synonym for getLogicalName method)
[Templating] fixed phpdoc a test
[FrameworkBundle] added getLogicalName() method to TemplateReference
[Templating] added method to return the template logical name, added test
2011-04-08 17:22:11 +02:00
Johannes M. Schmitt
8132102237
[Process] use component exception
2011-04-08 14:27:03 +02:00
Johannes M. Schmitt
34beec2161
[Process][Assetic] refactored some code to allow for better executable defaults
2011-04-08 12:20:27 +02:00
Martin Hason
185144bc46
[Templating] changed __toString method (synonym for getLogicalName method)
2011-04-08 11:33:35 +02:00
Martin Hason
20c5db2197
[Templating] fixed phpdoc a test
2011-04-08 11:24:28 +02:00
Martin Hason
6b5d991685
[Templating] added method to return the template logical name, added test
2011-04-08 10:31:47 +02:00
Victor Berchet
ceb2c976de
[HttpKernel] Fix the case where no resource is found
2011-04-08 08:52:03 +02:00
Fabien Potencier
dfa1da0416
[Form] removed unused use statement and fixed phpdoc
2011-04-07 09:00:01 +02:00
michaelwilliams
c4660418d2
Merge remote-tracking branch 'upstream/master'
2011-04-06 17:42:32 -07:00
Pascal Borreli
3dfbc08d73
[HttpKernel][Windows] Removed useless DIRECTORY_SEPARATOR conversion
2011-04-06 17:30:32 +00:00
Bernhard Schussek
67582c9a5c
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php
2011-04-06 16:06:26 +02:00
Bernhard Schussek
3482ff73b7
[Form] Fixed empty value in choice fields
2011-04-06 15:59:09 +02:00
Bernhard Schussek
e476231e8a
[Form] Removed invalid tests, cleaned up some tests, added test coverage
2011-04-06 15:58:53 +02:00
Kris Wallsmith
3ff157c8a5
[Validator] switched to apc_exists()
2011-04-06 04:12:29 -07:00
Kris Wallsmith
9ff2ca7f1d
[Validator] fixed apc cache
2011-04-06 04:07:37 -07:00
Fabien Potencier
ae218d202e
Merge remote branch 'vicb/bundle_inheritance'
...
* vicb/bundle_inheritance:
[Kernel] Fix bundle inheritance
2011-04-06 11:29:05 +02:00
Victor Berchet
745d144e79
[Event] Tweak phpDoc for consistency
2011-04-06 09:42:48 +02:00
Victor Berchet
7707c0f251
[Kernel] Fix bundle inheritance
2011-04-06 07:46:08 +02:00
Jordi Boggiano
e697224efa
[Security] Remove unneeded and invalid use statement
2011-04-05 18:42:00 +02:00
Fabien Potencier
e3679ef44f
[Routing] decoupled Routing from FrameworkBundle
2011-04-05 15:21:32 +02:00
Fabien Potencier
00c9539aaa
Merge remote branch 'vicb/config_base'
...
* vicb/config_base:
[Config] Add a note about the ConfigurationInterface interface in UPDATE.md
[MonologBundle] Make The Configuration class implements the ConfigurationInterface
[Config] Introduction of an ConfigurationInterface
2011-04-05 12:32:58 +02:00
Johannes Schmitt
6d4814c115
Merge branch 'acl-fix' of https://github.com/comfortablynumb/symfony into security
2011-04-05 12:25:24 +02:00
Gustavo Adrian
2e96f2c63d
Fixed exception that was thrown while updating a field ACE
2011-04-05 13:05:20 -03:00